You appear to be a bot. Output may be restricted
Description
Determines whether a suggested plugins notification needs to be displayed.
Usage
$void = WPSEO_Admin_Init::yoast_plugin_suggestions_notification();
Parameters
Returns
void
Source
File name: wordpress-seo/admin/class-admin-init.php
Lines:
1 to 20 of 20
public function yoast_plugin_suggestions_notification() { $checker = new WPSEO_Plugin_Availability(); $notification_center = Yoast_Notification_Center::get(); // Get all Yoast plugins that have dependencies. $plugins = $checker->get_plugins_with_dependencies(); foreach ( $plugins as $plugin_name => $plugin ) { $dependency_names = $checker->get_dependency_names( $plugin ); $notification = $this->get_yoast_seo_suggested_plugins_notification( $plugin_name, $plugin, $dependency_names[0] ); if ( $checker->dependencies_are_satisfied( $plugin ) && ! $checker->is_installed( $plugin ) ) { $notification_center->add_notification( $notification ); continue; } $notification_center->remove_notification( $notification ); } }