[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Customize API: WP_Customize_Media_Control class

File Size: 266 lines (9 kb)
Included or required: 2 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Customize_Media_Control:: (6 methods):
  __construct()
  enqueue()
  to_json()
  render_content()
  content_template()
  get_default_button_labels()


Class: WP_Customize_Media_Control  - X-Ref

Customize Media Control class.

__construct( $manager, $id, $args = array()   X-Ref
Constructor.

since: 4.1.0
since: 4.2.0 Moved from WP_Customize_Upload_Control.
param: WP_Customize_Manager $manager Customizer bootstrap instance.
param: string               $id      Control ID.
param: array                $args    Optional. Arguments to override class property defaults.

enqueue()   X-Ref
Enqueue control related scripts/styles.

since: 3.4.0
since: 4.2.0 Moved from WP_Customize_Upload_Control.

to_json()   X-Ref
Refresh the parameters passed to the JavaScript via JSON.

since: 3.4.0
since: 4.2.0 Moved from WP_Customize_Upload_Control.

render_content()   X-Ref
Don't render any content for this control from PHP.

since: 3.4.0
since: 4.2.0 Moved from WP_Customize_Upload_Control.

content_template()   X-Ref
Render a JS template for the content of the media control.

since: 4.1.0
since: 4.2.0 Moved from WP_Customize_Upload_Control.

get_default_button_labels()   X-Ref
Get default button labels.

Provides an array of the default button labels based on the mime type of the current control.

since: 4.9.0
return: string[] An associative array of default button labels keyed by the button name.



Generated: Fri Apr 26 01:00:03 2024 Cross-referenced by PHPXref 0.7.1