Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Example / Skeleton Admin options pane


azznonimous
Participant

@azznonimous

further investigation lead me to:

function bp_example_check_installed() {

...

/***
* If you call your admin functionality here, it will only be loaded when the user is in the
* wp-admin area, not on every page load.
*/
require ( WP_PLUGIN_DIR . '/bp-example/bp-example-admin.php' );

Checking WP_PLUGIN_DIR returns a full path that looks like it’s the key of all the problem. If I use just require ( 'bp-example/bp-example-admin.php' ); the require looks to work …

… still looking at this …

Skip to toolbar