Created
November 18, 2015 01:48
-
-
Save kharissulistiyo/a62f950448b270f823fc to your computer and use it in GitHub Desktop.
WooCommerce display product stock availability status without managing stock level
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('woocommerce_get_availability', 'my_availability_message', 10, 2); | |
function my_availability_message($args, $product){ | |
$args = array( | |
'availability' => __('Always Available', 'textdomain'), | |
'class' => 'always-available' | |
); | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment