Eternal_hacker 1 Posted May 26, 2019 Share Posted May 26, 2019 Hi guys i want to edit this 2 words any idea how? Link to comment Share on other sites More sharing options...
chef1974 1 Posted May 26, 2019 Share Posted May 26, 2019 add_filter( 'woocommerce_get_availability_text', 'wiseowl_custom_get_availability_text', 99, 2 ); function wiseowl_custom_get_availability_text( $availability, $product ) { $stock = $product->get_stock_quantity(); if ( $product->is_in_stock() && $product->managing_stock() ) $availability = __( 'Quantity: ' . $stock, 'woocommerce' ); return $availability; } this is for fucntions.php or simply remove sock control in metadata in product input page. Link to comment Share on other sites More sharing options...
Recommended Posts