wp_ajax_date_format() WordPress Function
The wp_ajax_date_format() function allows you to change the date format for the WordPress admin area. This function is useful if you want to change the way the date is displayed in the admin area to match your own country's date format.
wp_ajax_date_format() #
Ajax handler for date formatting.
Source
File: wp-admin/includes/ajax-actions.php
function wp_ajax_date_format() { wp_die( date_i18n( sanitize_option( 'date_format', wp_unslash( $_POST['date'] ) ) ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |