Show WooCommerce sale prices date on shopping page.
Show WooCommerce sale prices date on shopping page.
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';
}
- Upload
smntcs-woocommerce-show-sale-price-date
to the/wp-content/plugins/
directory. - Activate the plugin through the
Plugins
menu in WordPress.
You can find the plugin on https://wordpress.org/plugins/smntcs-show-sale-price-date-for-woocommerce/.
- Test up to WordPress 6.6
- Add support for variable products
- Test up to WooCommerce 7.1
- Test up to WordPress 6.1
- Test up to WooCommerce 6.9
- Test up to WordPress 6.0
- Test up to WordPress 5.9
- Add info that WooCommerce plugin is required
- Add settings link to plugin page
- Declaring required and supported WooCommerce version
- Make label editable via customizer
- Initial release