PHP 8.2.31
Preview: plugin-headers.php Size: 740 B
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/wordpress-seo/src/initializers/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;
	}
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
5.39 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
2.87 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
345 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
4.12 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
740 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download
1.17 KB lrw-r--r-- 2026-06-03 14:57:42
Edit Download
783 B lrw-r--r-- 2026-06-03 14:57:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).