Site logo

Archived topic

Overriding time format string in child theme functions.php

2 replies · Started by Anil on February 21, 2023

Viewing posts 1–3 of 3

Hi, I am working on a child theme for my domains.

Please suggest way to filter customised time format string (d M y D) for functions.php , so that I need not to change on each domain wp setting individually.

I read this also https://wordpress.org/documentation/article/customize-date-and-time-format/

if i override it in functions.php and it will save time.

Warm regards.

P.S. : I am trying it with generate_post_date_output ??? but no help

I could manage it with update option.

Hi Anil,

The time format is handled by WordPress, it's not theme specific.

Do you want all time in this format (d M y D)?

If so, I think the easiest way is to change it in the WP settings.

This archived topic is closed to new replies.