Ecommerce Shopify WordPress Discussion

I changed the WordPress date format but it doesn't work

I changed the date format in the WordPress settings, but I still have the date displayed in the format "2024-02-15", whereas I want a French format "15-02-2024". I've tried different code to add to function.php, but it doesn't work. <?php function custom_wordpressbox_loop_date($date_fmt) { return 'l, F j, Y'; }; add_filter('wordpressbox_loop_date', 'custom_wordpressbox_loop_date'); ?> Thank you for your help. Aymeric
If you need to change the date format for the whole website you can go to the Dashboard -> Settings -> General -> Date Format. If you need to format a particular date in your code you can use the date() function in PHP: date("l, F j, Y", strtotime($date_string));

February 17, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.