Skip to content

Commit

Permalink
Merge pull request #103 from workeffortwaste/remove-redirects
Browse files Browse the repository at this point in the history
Remove "Redirects" submenu
  • Loading branch information
senlin authored Nov 7, 2022
2 parents 55c0dca + 4d46da7 commit 8a739f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/class-so-clean-up-wp-seo-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ private function settings_fields() {
array(
'id' => 'hide_premium_submenu',
'label' => __( 'Premium submenus', 'so-clean-up-wp-seo' ),
'description' => __( 'Hides the "Premium" and "Workouts submenus.', 'so-clean-up-wp-seo' ),
'description' => __( 'Hides the "Premium", "Workouts" and "Redirects" submenus.', 'so-clean-up-wp-seo' ),
'type' => 'checkbox',
'default' => $options['hide_premium_submenu'],
),
Expand Down
2 changes: 1 addition & 1 deletion includes/class-so-clean-up-wp-seo.php
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ public function so_cuws_hide_visibility_css() {
// hide "Premium" submenu in its entirety
// include hiding "Workouts" submenu in its entirety
if ( ! empty( $this->options['hide_premium_submenu'] ) ) {
echo 'li#toplevel_page_wpseo_dashboard>ul>li:nth-child(6),li#toplevel_page_wpseo_dashboard>ul>li:nth-child(7){display:none;}'; // @since v3.6.0 hide "Premium" submenu in its entirety; @modified v3.12.0 decrease with 1, due to Search Console submenu being removed; @since 3.14.8 include hiding "Workouts" submenu in its entirety
echo 'li#toplevel_page_wpseo_dashboard>ul>li:nth-child(6),li#toplevel_page_wpseo_dashboard>ul>li:nth-child(7),li#toplevel_page_wpseo_dashboard>ul>li:nth-child(8){display:none;}'; // @since v3.6.0 hide "Premium" submenu in its entirety; @modified v3.12.0 decrease with 1, due to Search Console submenu being removed; @since 3.14.8 include hiding "Workouts" submenu in its entirety @since 3.x.x include hiding "Redirects" submenu in its entirety
}

// hide Post/Page/Taxonomy Deletion Premium Ad
Expand Down

0 comments on commit 8a739f5

Please sign in to comment.