Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Example / Skeleton Admin options pane


azznonimous
Participant

@azznonimous

I’ve seen that this:

bp-example-admin.php:

add_action( 'admin_menu', 'bp_example_add_admin_menu' );

This add_action is right after the definition of the same bp_example_add_admin_menu function.

From my understanding, once the require at the bp-example page is called, the add_action executes the function, am I right ? if so this doesn’t work, however, if I call bp_example_add_admin_menu right after the require it works fine loading the menu option right under the BuddyPress pane.

This is the propper behaviour ?

Skip to toolbar