Plugin custom pages
-
Can plugins have their own standalone pages?
I have a very basic plugin that attempts to do this, but it displays both my output, and then the entire index page below it. I suspect this has something to do with the ‘bb_get_location’ function, but I don’t know how to resolve it.
my-plugin.php
include_once(rtrim(dirname(__FILE__),' /\').'/my-plugin-core.php');
if (isset($_GET['my-plugin'])) {
add_action( 'bb_init', 'display_deals');
}my-plugin-core.php
echo "Example";
Can someone tell me the proper way to do this? Do I need to link directly into the ‘/bb-plugins/my-plugin/’ directory?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.