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

WPSEO_Addon_Manager::validate_addons() public Yoast 1.0

Validates the addons and show a notice for the ones that are invalid.

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

Хуков нет.

Возвращает

null. Ничего.

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

$WPSEO_Addon_Manager = new WPSEO_Addon_Manager();
$WPSEO_Addon_Manager->validate_addons();

Код WPSEO_Addon_Manager::validate_addons() Yoast 17.3

public function validate_addons() {
	$notification_center = Yoast_Notification_Center::get();

	if ( $notification_center === null ) {
		return;
	}

	$addons = [
		'Yoast SEO Premium'     => static::PREMIUM_SLUG,
		'News SEO'              => static::NEWS_SLUG,
		'Yoast WooCommerce SEO' => static::WOOCOMMERCE_SLUG,
		'Video SEO'             => static::VIDEO_SLUG,
		'Local SEO'             => static::LOCAL_SLUG,
	];

	foreach ( $addons as $product_name => $slug ) {
		$notification = $this->create_notification( $product_name );

		// Add a notification when the installed plugin isn't activated in My Yoast.
		if ( $this->is_installed( $slug ) && ! $this->has_valid_subscription( $slug ) ) {
			$notification_center->add_notification( $notification );

			continue;
		}

		$notification_center->remove_notification( $notification );
	}
}