Tribe__Tickets_Plus__Meta__Field__Birth::get_days()
Return an array whose values are from 01 to 31, with a leading zero on numbers bellow 10.
To be used in the date format YYYY-MM-DD
Return
(array)
Source
File: src/Tribe/Meta/Field/Birth.php
public function get_days() {
return array_map(
static function ( $day ) {
return str_pad( $day, 2, '0', STR_PAD_LEFT );
},
range( 1, 31 )
);
}
Changelog
| Version | Description |
|---|---|
| 4.12.1 | Introduced. |