Show WooCommerce sale prices date on shopping page
Author: | Niels Lange (profile at wordpress.org) |
WordPress version required: | 5.3 |
WordPress version tested: | 6.1.1 |
Plugin version: | 1.6 |
Added to WordPress repository: | 21-03-2020 |
Last updated: | 03-12-2022 |
Rating, %: | 100 |
Rated by: | 1 |
Plugin URI: | https://github.com/nielslange/smntcs-show-sal... |
Total downloads: | 1 179 |
Click to start download |
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';
}<h3>Contribute</h3>
Contributions are always welcome. Simply head over to Github and create an issue or open a pull request.
Screenshots
ChangeLog