[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/customize/ -> class-wp-customize-date-time-control.php (summary)

Customize API: WP_Customize_Date_Time_Control class

File Size: 289 lines (9 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Customize_Date_Time_Control:: (6 methods):
  render_content()
  json()
  content_template()
  get_month_choices()
  get_timezone_info()
  format_gmt_offset()


Class: WP_Customize_Date_Time_Control  - X-Ref

Customize Date Time Control class.

render_content()   X-Ref
Don't render the control's content - it's rendered with a JS template.

since: 4.9.0

json()   X-Ref
Export data to JS.

return: array
since: 4.9.0

content_template()   X-Ref
Renders a JS template for the content of date time control.

since: 4.9.0

get_month_choices()   X-Ref
Generate options for the month Select.

Based on touch_time().

return: array
since: 4.9.0

get_timezone_info()   X-Ref
Get timezone info.

return: array {
since: 4.9.0

format_gmt_offset( $offset )   X-Ref
Format GMT Offset.

param: float $offset Offset in hours.
return: string Formatted offset.
since: 4.9.0



Generated: Sat Apr 20 01:00:03 2024 Cross-referenced by PHPXref 0.7.1