SMNTCS Show Sale Price Date For WooCommerce Wordpress Plugin - Rating, Reviews, Demo & Download
Plugin Description
Show WooCommerce sale prices date on shopping page.
Filter
Adjust date format:
add_filter( 'sale_date_format', 'my_custom_sale_date_format' );
function my_custom_sale_date_format() {
return 'r';
}
Adjust label:
add_filter( 'sale_date_label', 'my_custom_sale_date_label' );
function my_custom_sale_date_label() {
return 'Valid until';
}
Contribute
Contributions are always welcome. Simply head over to Github and create an issue or open a pull request.