I'm using a PHP Class for my Plugin to prevent name collisions and keep everything nice and neat. And I am also using an instance of the class instead of static methods to keep from having to register a bunch of global variables.
in my main plugin file, I load the Class
IBLikeable, and instantiate it, and attach an action to
admin_menus as seen here:
$ibl = new IBLikeable(); add_action('admin_init', array( $ibl, 'register_settings')); add_action('admin_menu', array( $ibl, 'register_admin_menus'));
Inside my IBLikeable Class, the
IBLikeable::register_admin_menus() function looks like this: http://pastebin.com/egVmpL9L
I can't for the life of me figure out why the
wp_enqueue_script call in the
IBLikeable::enqueue_admin function isn't working when the style enqueue above is working just fine.
Can anybody help me debug?