Tribe__Tickets_Plus__Meta__Field__Birth::get_months()

Return an array whose keys are from 01 to 12, and the values are their translated month abbreviated names.


Return

(array)


Top ↑

Source

File: src/Tribe/Meta/Field/Birth.php

	public function get_months() {
		/** @var WP_Locale $wp_locale */
		global $wp_locale;

		// Similar result to $wp_locale->month_genitive, but with abbreviated month names.
		// [ '1' => 'Jan', '2' => 'Feb', etc ]
		return array_combine( array_flip( $wp_locale->month ), $wp_locale->month_abbrev );
	}

Top ↑

Changelog

Changelog
Version Description
4.12.1 Introduced.