WC_Woo_Update_Manager_Plugin::show_woo_update_manager_install_notice
Show a notice on the WC admin pages to install or activate the Woo Update Manager plugin.
Метод класса: WC_Woo_Update_Manager_Plugin{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$result = WC_Woo_Update_Manager_Plugin::show_woo_update_manager_install_notice(): void;
Код WC_Woo_Update_Manager_Plugin::show_woo_update_manager_install_notice() WC Woo Update Manager Plugin::show woo update manager install notice WC 10.4.0
public static function show_woo_update_manager_install_notice(): void {
if ( ! current_user_can( 'install_plugins' ) ) {
return;
}
if ( ! WC_Helper::is_site_connected() ) {
return;
}
if ( ! PageController::is_admin_or_embed_page() ) {
return;
}
if ( self::is_plugin_installed() && self::is_plugin_active() ) {
return;
}
if ( ! self::is_plugin_installed() ) {
if ( self::install_admin_notice_dismissed() ) {
return;
}
include __DIR__ . '/views/html-notice-woo-updater-not-installed.php';
return;
}
if ( self::activate_admin_notice_dismissed() ) {
return;
}
include __DIR__ . '/views/html-notice-woo-updater-not-activated.php';
}