Description
The gravityflow_date_format_entry_detail filter is used to adjust the date format which status information is displayed in the info box on the entry detail page.
Parameters
Parameter | Type | Details |
---|---|---|
$date_format | String | A date format string – defaults to the date format setting in the WordPress general settings. |
Examples
Change the date format from YYYY/MM/DD to Month DD, YYYY
add_filter( 'gravityflow_date_format_entry_detail', 'sh_entry_detail_date_format', 10, 1 );
function sh_entry_detail_date_format( $date_format ) {
$date_format = 'M d, Y';
return $date_format;
}
Placement
This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.
See also the PHP section in this article: Where Do I Put This Code?