how to modify core buddypress
Ok, so I have an example task that I am trying to accomplish. For some reason, the Leave Group button on Groups that I am a member of does not generate a confirmation dialog, it just removes my membership in the group, yet, I would like to have the confirmation dialog.
I know that I can add the confirm class to the leave-group button, but in order to do that, I have to modify `line 1541` in `/plugins/buddypress/bp-groups/bp-group-template.php` to read:
`’link_class’ => ‘group-button leave-group confirm’,`
`’link_class’ => ‘group-button leave-group’,`
Now this works, but I am modifying core and I don’t want to do that cause it’s going to go away if I update.
How can I make this small modification to core in a BuddyPress friendly way. I’ve tried adding the function to bp-custom.php and customizing it there, but the log says error: can’t redeclare that.
What can I do otherwise?
You must be logged in to reply to this topic.