woocommerce_cart_item_removed_notice_type

woocommerce_cart_item_removed_notice_type

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_cart_item_removed_notice_type') is found 1 times:

  • /includes/class-wc-form-handler.php line 671
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
            /* Translators: %s Product title. */
            $removed_notice = sprintf( __( '%s removed.', 'woocommerce' ), $item_removed_title );
        }
     
        wc_add_notice( $removed_notice, apply_filters( 'woocommerce_cart_item_removed_notice_type', 'success' ) );
    }
     
    if ( wp_get_referer() ) {
        wp_safe_redirect( remove_query_arg( array( 'remove_item', 'add-to-cart', 'added-to-cart', 'order_again', '_wpnonce' ), add_query_arg( 'removed_item', '1', wp_get_referer() ) ) );
        exit;
    }