WP_Locale::_strings_for_pot()publicWP 3.6.0

Registers date/time format strings for general POT.

Private, unused method to add some date/time formats translated on wp-admin/options-general.php to the general POT that would otherwise be added to the admin POT.

Method of the class: WP_Locale{}

No Hooks.

Return

null. Nothing (null).

Usage

global $wp_locale;
$wp_locale->_strings_for_pot();

Changelog

Since 3.6.0 Introduced.

WP_Locale::_strings_for_pot() code WP 6.6.2

public function _strings_for_pot() {
	/* translators: Localized date format, see https://www.php.net/manual/datetime.format.php */
	__( 'F j, Y' );
	/* translators: Localized time format, see https://www.php.net/manual/datetime.format.php */
	__( 'g:i a' );
	/* translators: Localized date and time format, see https://www.php.net/manual/datetime.format.php */
	__( 'F j, Y g:i a' );
}