WPDev.one
Core Function
View Source on Trac ↗

wp_maybe_decline_date()

wp_maybe_decline_date( mixed $date, mixed $format = '' )

Determines if the date should be declined.

Parameters 1 required

Name / Type Description
$date
string

Formatted date string.

Required
$format
string

Optional. Date format to check. Default empty string.

Return Value

(string)
The date, declined if locale specifies it.

Function Information

Since Version
4.4.0
Source File
wp-includes/functions.php
Advertisement