So I have a plugin that I've created for the admin are when creating post... and I'd like to supply a widget along with it.
I'm trying to figure out the best way to initialize my widget. I'm initializing my plugin like so:
function call_menu_per_page_class()
{
return new MenuPerPage();
}
if ( is_admin() )
add_action( 'admin_menu', 'call_my_class' );
Obviously, the widget does NOT require someone to be an admin to view it... it will be viewed in a sidebar within my Theme.
Is there a specific action/filter and hook that I should use to execute my widget class?
Remember, this is being packed with my plugin... so it can't be called from functions.php