wp_maybe_decline_date
wp_maybe_decline_date ( $date, $format = '' )
Parameters:- (string) date Formatted date string.
- (string) format Optional. Date format to check. Default empty string.
Returns:- (string) The date, declined if locale specifies it.
Defined at:Change Log: - Introduced in WordPress: 4.4.0
- Deprecated in WordPress: —
Description
Determines if the date should be declined.If the locale specifies that month names require a genitive case in certain
formats (like 'j F Y'), the month name will be replaced with a correct form.