WPSEO_Addon_Manager::validate_addons()
Validates the addons and show a notice for the ones that are invalid.
Метод класса: WPSEO_Addon_Manager{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WPSEO_Addon_Manager = new WPSEO_Addon_Manager(); $WPSEO_Addon_Manager->validate_addons();
Код WPSEO_Addon_Manager::validate_addons() WPSEO Addon Manager::validate addons Yoast 22.4
public function validate_addons() { $notification_center = Yoast_Notification_Center::get(); if ( $notification_center === null ) { return; } foreach ( $this->addon_details as $slug => $addon_info ) { $notification = $this->create_notification( $addon_info['name'], $addon_info['short_link_activation'] ); // 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 ); } }