/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/*Add your own styles here:*/


function wc_custom_get_availability_text( $availability, $_product ) {
    if ( $_product->managing_stock() && $_product->is_on_backorder( 1 ) ) {
        $availability = $_product->backorders_require_notification() ? __( 'My custom backorder text', 'storefront' ) : '';
    } elseif ( ! $_product->managing_stock() && $_product->is_on_backorder( 1 ) ) {
        $availability = __( 'My custom backorder text 2', 'storefront' );
    }

    return $availability;
}
add_filter( 'woocommerce_get_availability_text', 'wc_custom_get_availability_text', 10, 2 );
