WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WPSEO_Plugin_Availability::register_yoast_plugins() protected Yoast 1.0

Registers all the available Yoast SEO plugins.

{} Это метод класса: WPSEO_Plugin_Availability{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->register_yoast_plugins();

Код WPSEO_Plugin_Availability::register_yoast_plugins() Yoast 15.1.1

<?php
protected function register_yoast_plugins() {
	$this->plugins = [
		'yoast-seo-premium' => [
			'url'          => WPSEO_Shortlinker::get( 'https://yoa.st/1y7' ),
			'title'        => 'Yoast SEO Premium',
			'description'  => sprintf(
				/* translators: %1$s expands to Yoast SEO */
				__( 'The premium version of %1$s with more features & support.', 'wordpress-seo' ),
				'Yoast SEO'
			),
			'installed'    => false,
			'slug'         => 'wordpress-seo-premium/wp-seo-premium.php',
			'version_sync' => true,
			'premium'      => true,
		],

		'video-seo-for-wordpress-seo-by-yoast' => [
			'url'          => WPSEO_Shortlinker::get( 'https://yoa.st/1y8' ),
			'title'        => 'Video SEO',
			'description'  => __( 'Optimize your videos to show them off in search results and get more clicks!', 'wordpress-seo' ),
			'installed'    => false,
			'slug'         => 'wpseo-video/video-seo.php',
			'version_sync' => true,
			'premium'      => true,
		],

		'yoast-news-seo' => [
			'url'          => WPSEO_Shortlinker::get( 'https://yoa.st/1y9' ),
			'title'        => 'News SEO',
			'description'  => __( 'Are you in Google News? Increase your traffic from Google News by optimizing for it!', 'wordpress-seo' ),
			'installed'    => false,
			'slug'         => 'wpseo-news/wpseo-news.php',
			'version_sync' => true,
			'premium'      => true,
		],

		'local-seo-for-yoast-seo' => [
			'url'          => WPSEO_Shortlinker::get( 'https://yoa.st/1ya' ),
			'title'        => 'Local SEO',
			'description'  => __( 'Rank better locally and in Google Maps, without breaking a sweat!', 'wordpress-seo' ),
			'installed'    => false,
			'slug'         => 'wordpress-seo-local/local-seo.php',
			'version_sync' => true,
			'premium'      => true,
		],

		'yoast-woocommerce-seo' => [
			'url'           => WPSEO_Shortlinker::get( 'https://yoa.st/1o0' ),
			'title'         => 'Yoast WooCommerce SEO',
			'description'   => sprintf(
				/* translators: %1$s expands to Yoast SEO */
				__( 'Seamlessly integrate WooCommerce with %1$s and get extra features!', 'wordpress-seo' ),
				'Yoast SEO'
			),
			'_dependencies' => [
				'WooCommerce' => [
					'slug' => 'woocommerce/woocommerce.php',
				],
			],
			'installed'     => false,
			'slug'          => 'wpseo-woocommerce/wpseo-woocommerce.php',
			'version_sync'  => true,
			'premium'       => true,
		],
	];
}