PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/menu/class-network-admin-menu.php +11 -6 18.228.5 View file →
@@ -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.