wp_ajax_date_format() In this article Table of ContentsSource Related Changelog ↑ Back to top Handles formatting a date via AJAX. Source function wp_ajax_date_format() { wp_die( date_i18n( sanitize_option( 'date_format', wp_unslash( $_POST['date'] ) ) ) ); } View all references View on Trac View on GitHub Related UsesDescriptionsanitize_option()wp-includes/formatting.phpSanitizes various option values based on the nature of the option. date_i18n()wp-includes/functions.phpRetrieves the date in localized format, based on a sum of Unix timestamp and timezone offset in seconds. wp_unslash()wp-includes/formatting.phpRemoves slashes from a string or recursively removes slashes from strings within an array. wp_die()wp-includes/functions.phpKills WordPress execution and displays HTML page with an error message. Show 2 moreShow less Changelog VersionDescription3.1.0Introduced. User Contributed Notes You must log in before being able to contribute a note or feedback.
User Contributed Notes
You must log in before being able to contribute a note or feedback.