Uses
| Uses | Description |
|---|---|
| wp-includes/formatting.php: esc_attr() | Escaping for HTML attributes. |
| wp-includes/class-wp-customize-control.php: WP_Customize_Control::render_content() | Render the control’s content. |
Renders the control wrapper and calls $this->render_content() for the internals.
File: wp-includes/class-wp-customize-control.php
protected function render() {
$id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id );
$class = 'customize-control customize-control-' . $this->type;
printf( '<li id="%s" class="%s">', esc_attr( $id ), esc_attr( $class ) );
$this->render_content();
echo '</li>';
} | Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_customize_control/render