woocommerce_show_autoinstalled_plugin_notices

woocommerce_show_autoinstalled_plugin_notices

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.8.3

apply_filters('woocommerce_show_autoinstalled_plugin_notices') is found 1 times:

  • /src/Internal/Utilities/PluginInstaller.php line 229
    		 *
    		 * @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'] ) {