/** * --- Restore Out of Stock Manage plugin message --- * Fixes Astra overriding WooCommerce stock availability text. */ add_action( 'after_setup_theme', function() { // Remove Astra's own filters so plugin can control the message remove_filter( 'woocommerce_get_availability_text', 'astra_woocommerce_get_availability_text', 10 ); remove_filter( 'astra_woo_shop_out_of_stock_string', 'astra_woo_shop_out_of_stock_string' ); }, 20 ); add_filter( 'woocommerce_get_availability_text', 'consideredart_restore_oos_message', 20, 2 ); function consideredart_restore_oos_message( $availability, $product ) { if ( ! $product->is_in_stock() && function_exists( 'out_of_stock_manage_get_message' ) ) { $availability = out_of_stock_manage_get_message( $product ); } return $availability; } Cart - consideredART