Skip to content

Commit

Permalink
fix: move settings menu item to newspack newsletters menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonrabb committed Apr 19, 2020
1 parent fdc4d9e commit b562a39
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions includes/class-newspack-newsletters-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ public static function get_settings_list() {
* Add options page
*/
public static function add_plugin_page() {
add_options_page(
__( 'Newspack Newsletters Settings', 'newspack-newsletters' ),
__( 'Newspack Newsletters', 'newspack-newsletters' ),
add_submenu_page(
'edit.php?post_type=' . Newspack_Newsletters::NEWSPACK_NEWSLETTERS_CPT,
__( 'Newspack Newsletters Settings', 'newspack-newsletters' ),
__( 'Settings', 'newspack-newsletters' ),
'manage_options',
'newspack-newsletters-settings-admin',
[ __CLASS__, 'create_admin_page' ]
Expand Down

0 comments on commit b562a39

Please sign in to comment.