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:
  • 5: .

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.

Related Functions

wp_maybe_auto_update, wp_cache_delete, wp_make_link_relative, wp_make_plugin_file_tree, wp_ajax_inline_save

Top Google Results

User discussions

wpseek mobile