WP_Customize_Control::render() WordPress Method

The WP_Customize_Control::render() method is used to render a Customizer control. This method is called by the Customizer when it is time to render the control.

WP_Customize_Control::render() #

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


Source

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


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.