Overwriting a core function without modifying core files
I asked this question previously and didn’t get a useful answer so I’m asking it again:
I had to modify functions in the bp-members-functions.php file to accommodate my requirements but as everybody knows, core files should not be modified since this modification will be overridden after each update.
So my question is: How can I overwrite any function without touching the core files?
A simple example: I want to allow underscores in usernames upon registration so for now I commented the “No underscores….” code part in bp_core_validate_user_signup function, how can I implement this without modifying the function directly?
Thanks for your help
- The topic ‘Overwriting a core function without modifying core files’ is closed to new replies.