BP_XProfile_Field_Type_Datebox::get_date_formats()
Gets the default date formats available when configuring a Date field.
Description
Return
(array)
Source
File: bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php
public function get_date_formats() {
$date_formats = array_unique( apply_filters( 'date_formats', array( __( 'F j, Y', 'buddyboss' ), 'Y-m-d', 'm/d/Y', 'd/m/Y' ) ) );
/**
* Filters the available date formats for XProfile date fields.
*
* @since BuddyPress 2.7.0
*
* @param array $date_formats
*/
return apply_filters( 'bp_xprofile_date_field_date_formats', $date_formats );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 2.7.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.