woocommerce_show_autoinstalled_plugin_notices
woocommerce_show_autoinstalled_plugin_notices
Appears in: woocommerce.8.8.3, woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3, woocommerce.9.3.1, woocommerce.9.3.3, woocommerce.9.4.2, woocommerce.9.4.3, woocommerce.9.5.1, woocommerce.9.5.2, woocommerce.9.7.0
Hook Type: filter
Displaying hooks found in version: woocommerce.9.7.0apply_filters('woocommerce_show_autoinstalled_plugin_notices') is found 1 times:
- /src/Internal/Utilities/PluginInstaller.php line 241237238239240241242243244245246247
*
* @param bool
$display_notice
Whether notices should be displayed
or
not.
* @returns bool
*/
if
( ! apply_filters(
'woocommerce_show_autoinstalled_plugin_notices'
,
'__return_true'
) ) {
return
;
}
$auto_installed_plugins_info
= get_site_option(
'woocommerce_autoinstalled_plugins'
,
array
() );
$current_plugin_info
=
$auto_installed_plugins_info
[
$plugin_file
] ?? null;
if
(
is_null
(
$current_plugin_info
) ||
$current_plugin_info
[
'version'
] !==
$plugin_data
[
'Version'
] ) {