Get Post Date Format

This is a Developer Level doc.

If you're unfamiliar with PHP and/or editing files, codes and templates, as well as with resolving possible conflict, please seek help from a professional. Under our Support Policy, we don't provide support for modifications and customization.

To change the published date format output on single blog post header styles meta (all styles except for the Default style), you can use the ocean_get_post_date_format filter hook.

add_filter( 'ocean_get_post_date_format', 'my_get_post_date_format' );
function my_get_post_date_format() {

    $output = 'Y/m/d';

    return $output;
}

Adjust the $output value accordingly.

Follow this article to learn how to use this and other hooks, though the filter has already been added to this code example.

Useful Link: WordPress Date Format Strings

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.