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

WPSEO_License_Page_Manager::validate_extensions() public Yoast 1.0

Validates the extensions and show a notice for the invalid extensions.

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

Хуки из метода
Возвращает

Null. Ничего.

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

$WPSEO_License_Page_Manager = new WPSEO_License_Page_Manager();
$WPSEO_License_Page_Manager->validate_extensions();

Код WPSEO_License_Page_Manager::validate_extensions() Yoast 15.1.1

<?php
public function validate_extensions() {

	if ( filter_input( INPUT_GET, 'page' ) === WPSEO_Admin::PAGE_IDENTIFIER ) {
		/**
		 * Filter: 'yoast-active-extensions' - Collects all active extensions. This hook is implemented in the
		 *                                     license manager.
		 *
		 * @api array $extensions The array with extensions.
		 */
		apply_filters( 'yoast-active-extensions', [] );
	}

	$extension_list = new WPSEO_Extensions();
	$extensions     = $extension_list->get();

	$notification_center = Yoast_Notification_Center::get();

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

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

			continue;
		}

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