Remove the backorder text in emails in WooCommerce

Remove the backorder text in emails in WooCommerce.

Snippet Type

Execute on Child Sites

Snippet

function remove_backorder_from_item_meta( $html, $item, $args ){

    if ( strpos( $html, 'Backordered:') !== false ){
        return str_replace( '<li><strong class="wc-item-meta-label">Backordered:</strong> <p>', '<li><p>', $html );
    }

	return $html;
}

add_filter( 'woocommerce_display_item_meta', 'remove_backorder_from_item_meta', 10, 3);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.