WP_Customize_Control::render()protectedWP 3.4.0

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

Метод класса: WP_Customize_Control{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->render();

Список изменений

С версии 3.4.0 Введена.

Код WP_Customize_Control::render() WP 6.4.3

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