WP_Customize_Control::render

Advertisement

Summery Summery

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

Syntax Syntax

WP_Customize_Control::render()

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

Advertisement

Changelog Changelog

Changelog
Version Description
3.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.