Comment 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 date format output on single blog post comments, you can use the ocean_comment_date_format filter hook.

add_filter( 'ocean_comment_date_format', 'my_comment_date_format' );
function my_comment_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.