WP_Customize_Control::render()

In this article

Renders the control wrapper and calls $this->render_content() for the internals.

Source

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

Changelog

VersionDescription
3.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.