Skip to content
Docs
Get RestroPress

Filter

rpress_current_date

Updated
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#

ParameterTypeDescription
$date_i18nstringThe 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), in rp_current_date()
Was this page helpful?