woocommerce_show_admin_notice filter-hookWC 1.0

Usage

add_filter( 'woocommerce_show_admin_notice', 'wp_kama_woocommerce_show_admin_notice_filter', 10, 2 );

/**
 * Function for `woocommerce_show_admin_notice` filter-hook.
 * 
 * @param  $true   
 * @param  $notice 
 *
 * @return 
 */
function wp_kama_woocommerce_show_admin_notice_filter( $true, $notice ){

	// filter...
	return $true;
}
$true
-
$notice
-

Where the hook is called

WC_Admin_Notices::add_notices()
woocommerce_show_admin_notice
woocommerce/includes/admin/class-wc-admin-notices.php 328
if ( ! empty( self::$core_notices[ $notice ] ) && apply_filters( 'woocommerce_show_admin_notice', true, $notice ) ) {

Where the hook is used in WooCommerce

woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php 51
add_filter( 'woocommerce_show_admin_notice', array( $this, 'remove_old_install_notice' ), 10, 2 );