[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Customize API: WP_Customize_Date_Time_Control class

File Size: 319 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.


json()   X-Ref
Export data to JS.

return: array

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


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

Based on touch_time().

return: array

get_timezone_info()   X-Ref
Get timezone info.

return: array {

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

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



Generated : Thu Mar 28 08:20:01 2024 Cross-referenced by PHPXref