public function __construct($handle) { self::$pagehook = add_submenu_page($handle, 'Podcast Feeds', 'Podcast Feeds', 'administrator', 'podlove_feeds_settings_handle', array($this, 'page')); add_action('admin_init', array($this, 'process_form')); add_action("load-" . self::$pagehook, array($this, 'add_screen_options')); $this->init_page_documentation(self::$pagehook); if (isset($_GET["page"]) && $_GET["page"] == "podlove_feeds_settings_handle" && isset($_GET["update_settings"]) && $_GET["update_settings"] == "true") { add_action('admin_bar_init', array($this, 'save_global_feed_setting')); } }
public function __construct($handle) { self::$pagehook = add_submenu_page($handle, 'Feeds', 'Feeds', 'administrator', 'podlove_feeds_settings_handle', array($this, 'page')); add_action('admin_init', array($this, 'process_form')); }