/** * Register Notification menu under Stream's main one * * @action admin_menu * @return void */ public function register_menu() { self::$screen_id = add_submenu_page('wp_stream', __('Notifications', 'stream-notifications'), __('Notifications', 'stream-notifications'), self::VIEW_CAP, self::NOTIFICATIONS_PAGE_SLUG, array($this, 'page')); add_action('load-' . self::$screen_id, array($this, 'page_form_save')); add_action('load-' . self::$screen_id, array($this->form, 'load')); }
/** * Register Notification menu under Stream's main one * * @action admin_menu * @return void */ public function register_menu() { self::$screen_id = add_submenu_page(WP_Stream_Admin::RECORDS_PAGE_SLUG, __('Notifications', 'stream'), __('Notifications', 'stream'), self::VIEW_CAP, sprintf('edit.php?post_type=%s', WP_Stream_Notifications_Post_Type::POSTTYPE)); }