| @@ -31,13 +31,13 @@ | ||
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | add_menu_page( |
| 34 | 34 | __( 'Network Settings', 'wordpress-seo' ) . ' - Yoast SEO', |
| 35 | - __( 'SEO', 'wordpress-seo' ), | |
| 35 | + 'Yoast SEO', | |
| 36 | 36 | $this->get_manage_capability(), |
| 37 | 37 | $this->get_page_identifier(), |
| 38 | 38 | [ $this, 'network_config_page' ], |
| 39 | - $this->get_icon_svg() | |
| 39 | + $this->get_icon_svg(), | |
| 40 | 40 | ); |
| 41 | 41 | |
| 42 | 42 | $submenu_pages = $this->get_submenu_pages(); |
| 43 | 43 | $this->register_submenu_pages( $submenu_pages ); |
| @@ -54,9 +54,9 @@ | ||
| 54 | 54 | $submenu_pages = [ |
| 55 | 55 | $this->get_submenu_page( |
| 56 | 56 | __( 'General', 'wordpress-seo' ), |
| 57 | 57 | $this->get_page_identifier(), |
| 58 | - [ $this, 'network_config_page' ] | |
| 58 | + [ $this, 'network_config_page' ], | |
| 59 | 59 | ), |
| 60 | 60 | ]; |
| 61 | 61 | |
| 62 | 62 | if ( WPSEO_Utils::allow_system_file_edit() === true ) { |
| @@ -62,11 +62,16 @@ | ||
| 62 | 62 | if ( WPSEO_Utils::allow_system_file_edit() === true ) { |
| 63 | 63 | $submenu_pages[] = $this->get_submenu_page( __( 'Edit Files', 'wordpress-seo' ), 'wpseo_files' ); |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $submenu_pages[] = $this->get_submenu_page( __( 'Extensions', 'wordpress-seo' ), 'wpseo_licenses' ); | |
| 67 | - | |
| 68 | - return $submenu_pages; | |
| 66 | + /** | |
| 67 | + * Filter: 'wpseo_network_submenu_pages' - Collects all network submenus that need to be shown. | |
| 68 | + * | |
| 69 | + * @internal For internal Yoast SEO use only. | |
| 70 | + * | |
| 71 | + * @param array $submenu_pages List with all submenu pages. | |
| 72 | + */ | |
| 73 | + return (array) apply_filters( 'wpseo_network_submenu_pages', $submenu_pages ); | |
| 69 | 74 | } |
| 70 | 75 | |
| 71 | 76 | /** |
| 72 | 77 | * Loads the form for the network configuration page. |