Automattic\WooCommerce\Admin
PluginsHelper::maybe_enqueue_scripts_for_notices_in_plugins()
Enqueue scripts for notices in plugin list page.
Метод класса: PluginsHelper{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = PluginsHelper::maybe_enqueue_scripts_for_notices_in_plugins();
Код PluginsHelper::maybe_enqueue_scripts_for_notices_in_plugins() PluginsHelper::maybe enqueue scripts for notices in plugins WC 9.3.3
public static function maybe_enqueue_scripts_for_notices_in_plugins() { if ( 'plugins' !== get_current_screen()->id ) { return; } WCAdminAssets::register_script( 'wp-admin-scripts', 'woo-plugin-update-connect-notice' ); WCAdminAssets::register_script( 'wp-admin-scripts', 'woo-enable-autorenew' ); WCAdminAssets::register_script( 'wp-admin-scripts', 'woo-renew-subscription' ); wp_enqueue_script( 'woo-plugin-update-connect-notice' ); wp_enqueue_script( 'woo-enable-autorenew' ); wp_enqueue_script( 'woo-renew-subscription' ); }