Need a nudge in the right direction… customizing the settings page
I’ve been staring at this for hours, and doing a few experiments, but I’m still none the wiser.
I would like to customize the settings entry page more deeply than I can do by modifying “plugin-template.php” in the member theme. I would like to avoid modifying core files. I see that several folks have asked about this, but don’t see any replies.
This much I know: The settings page content is created in “bp_core_screen_general_settings_content()” in “bp-core-settings.php”. I can do what I need to do by replacing this function.
The question is how to do this. It seems that I need to change “bp_core_screen_general_settings()” so that it hooks my new function to ‘bp-template-content’.
I see two ways to do this:
- I can replace “bp_core_add_settings_nav()” with a new function that adds a different subnav item. To do this I would remove_action() and then add_action() for my new function.
- I can create a new function that removes the old subnav items from the list and adds new ones that call my function.
My question for both approaches is the same: what hook would I use to do this? Whatever I try, the old functions load, so somehow I’m not intercepting them correctly.
The topic ‘Need a nudge in the right direction… customizing the settings page’ is closed to new replies.