Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Example / Skeleton Admin options pane


Jeff Sayre
Participant

@jeffsayre

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

Make sure your component is in /wp-content/plugins/ and not /plugins/buddypress/. If you do that, then using WP_PLUGIN_DIR will lead to the correct pathing.

Skip to toolbar