On this page
WP_Customize_Control::get_content(): string
Get the control’s content for insertion into the Customizer pane.
Return
string Contents of the control.
Source
File: wp-includes/class-wp-customize-control.php. View all references
final public function get_content() {
ob_start();
$this->maybe_render();
return trim( ob_get_clean() );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_Customize_Control::maybe_render() wp-includes/class-wp-customize-control.php | Check capabilities and render the control. |
Used By
| Used By | Description |
|---|---|
| WP_Customize_Control::to_json() wp-includes/class-wp-customize-control.php | Refresh the parameters passed to the JavaScript via JSON. |
Changelog
| Version | Description |
|---|---|
| 4.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_control/get_content