Site logo

[Resolved] Overriding time format string in child theme functions.php

Home Forums Support [Resolved] Overriding time format string in child theme functions.php

Home Forums Support Overriding time format string in child theme functions.php

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #2541198
    Anil

    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

    #2541537
    Anil

    I could manage it with update option.

    #2541538
    Ying
    Staff
    Customer Support

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.