woocommerce_notice_types

woocommerce_notice_types

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_notice_types') is found 1 times:

  • /includes/wc-notice-functions.php line 150
    		return;
    	}
    
    	$all_notices  = $session->get( 'wc_notices', array() );
    	$notice_types = apply_filters( 'woocommerce_notice_types', array( 'error', 'success', 'notice' ) );
    
    	// Buffer output.
    	ob_start();
    
    	foreach ( $notice_types as $notice_type ) {
    		if ( wc_notice_count( $notice_type ) > 0 ) {