Show WooCommerce sale prices date on shopping page.
Show WooCommerce sale prices date on shopping page.
You can find the plugin on https://wordpress.org/plugins/smntcs-show-sale-price-date-for-woocommerce/.
smntcs-woocommerce-show-sale-price-date
to the /wp-content/plugins/
directory.Plugins
menu in WordPress.add_filter( 'sale_date_format', 'my_custom_sale_date_format' );
function my_custom_sale_date_format() {
return 'r';
}
add_filter( 'sale_date_label', 'my_custom_sale_date_label' );
function my_custom_sale_date_label() {
return 'Valid until';
}
Contributions are always welcome. Simply create a new issue or open a pull request.