Filter
rpress_current_date
On this page
Filters the current date string returned by rp_current_date().
The date is formatted in the site timezone using the site date format, or the format passed to the function.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$date_i18n | string | The formatted current date. |
Return value#
string. The current date string.
Example#
function my_current_date( $date ) {
return $date;
}
add_filter( 'rpress_current_date', 'my_current_date' );
Source#
Applied in:
includes/rp-core-functions.php(line 802), inrp_current_date()
Was this page helpful?
