static function admin_menu() { $intro = sprintf('Intro (v%1$s)', Footer_Credits_Plugin::get_version()); self::$screen_id = add_menu_page(FOOTER_PUTTER_FRIENDLY_NAME, FOOTER_PUTTER_FRIENDLY_NAME, 'manage_options', Footer_Credits_Plugin::get_slug(), array(__CLASS__, 'settings_panel')); add_submenu_page(Footer_Credits_Plugin::get_slug(), FOOTER_PUTTER_FRIENDLY_NAME, $intro, 'manage_options', Footer_Credits_Plugin::get_slug(), array(__CLASS__, 'settings_panel')); }
public static function enqueue_styles() { wp_enqueue_style(self::CODE . '-admin', plugins_url('styles/admin.css', dirname(__FILE__)), array(), Footer_Credits_Plugin::get_version()); }
public static function enqueue_styles() { wp_enqueue_style(__CLASS__, plugins_url('styles/footer-credits.css', dirname(__FILE__)), array(), Footer_Credits_Plugin::get_version()); }