WP_Customize_Control::render()protectedWP 3.4.0

{} It's a method of the class: WP_Customize_Control{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->render();

Changelog

Since 3.4.0 Introduced.

Code of WP_Customize_Control::render() WP 6.0

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>';
}