woocommerce_show_autoinstalled_plugin_notices filter-hookWC 8.8.0

Filter to suppress the notice about autoinstalled plugins in the plugins list page.

Usage

add_filter( 'woocommerce_show_autoinstalled_plugin_notices', 'wp_kama_woocommerce_show_autoinstalled_plugin_notices_filter' );

/**
 * Function for `woocommerce_show_autoinstalled_plugin_notices` filter-hook.
 * 
 * @param bool $display_notice Whether notices should be displayed or not.
 *
 * @return bool
 */
function wp_kama_woocommerce_show_autoinstalled_plugin_notices_filter( $display_notice ){

	// filter...
	return $display_notice;
}
$display_notice(true|false)
Whether notices should be displayed or not.

Changelog

Since 8.8.0 Introduced.

Where the hook is called

PluginInstaller::handle_plugin_list_rows()
woocommerce_show_autoinstalled_plugin_notices
woocommerce/src/Internal/Utilities/PluginInstaller.php 235
if ( ! apply_filters( 'woocommerce_show_autoinstalled_plugin_notices', '__return_true' ) ) {

Where the hook is used in WooCommerce

Usage not found.