Change backorder text

The default “Available for back order” message in WooCommerce is a little unhelpful to customers.
Use this function to change the message to something more suitable for your customers.

function change_backorder_message( $text, $product ){
    if ( $product->managing_stock() && $product->is_on_backorder( 1 ) ) {
        $text = __( 'Please allow 2 – 4 weeks for delivery of this item', 'your-textdomain' );
    return $text;
add_filter( 'woocommerce_get_availability_text', 'change_backorder_message', 10, 2 );



  • grace

    May 31, 2019

    Fantastic! What is meant to go in the ‘your-textdomain’ portion, and where does that bit show up on the front-end?

  • LWD

    May 31, 2019

    Have a read about the __ function in WordPress

    It relates to translating the string into different languages

  • Jo

    August 1, 2019

    Thanks for this, just what I needed.

  • Romain Olivier

    February 14, 2020

    Works great ! Thank you.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.