File ManagerCurrent Directory: wp-content/plugins/wordpress-seo/src/initializersLinux appserver-7a7af3b2-php-0c9ec09e2f9746c2a80fa3756c076432 6.12.94+ #1 SMP Fri Jul 17 09:26:56 UTC 2026 x86_64Edit File: plugin-headers.php <?php namespace Yoast\WP\SEO\Initializers; use Yoast\WP\SEO\Conditionals\No_Conditionals; /** * Adds custom headers to the list of plugin headers to read. */ class Plugin_Headers implements Initializer_Interface { use No_Conditionals; /** * Hooks into the list of the plugin headers. * * @return void */ public function initialize() { \add_filter( 'extra_plugin_headers', [ $this, 'add_requires_yoast_seo_header' ] ); } /** * Add the `Requires Yoast SEO` header to the list of headers. * * @param array<string> $headers The headers. * * @return array<string> The updated headers. */ public function add_requires_yoast_seo_header( $headers ) { $headers[] = 'Requires Yoast SEO'; return $headers; } } Upload File Directory Listing NameTypeSizeActions.. (Parent Directory)Dircrawl-cleanup-permalinks.phpFile5.39 KB Rename | Delete | Editdisable-core-sitemaps.phpFile2.87 KB Rename | Delete | Editinitializer-interface.phpFile345.00 B Rename | Delete | Editmigration-runner.phpFile4.11 KB Rename | Delete | Editplugin-headers.phpFile740.00 B Rename | Delete | Editwoocommerce.phpFile783.00 B Rename | Delete | Edit