WPSEO_Taxonomy_Metabox::render_hidden_fields()protectedYoast 1.0

Renders the metabox hidden fields.

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

Хуков нет.

Возвращает

null. Ничего.

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

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

Код WPSEO_Taxonomy_Metabox::render_hidden_fields() Yoast 19.11

protected function render_hidden_fields() {
	$fields_presenter  = new WPSEO_Taxonomy_Fields_Presenter( $this->term );
	$field_definitions = new WPSEO_Taxonomy_Fields();

	echo $fields_presenter->html( $field_definitions->get( 'content' ) );
	if ( WPSEO_Capability_Utils::current_user_can( 'wpseo_edit_advanced_metadata' ) || WPSEO_Options::get( 'disableadvanced_meta' ) === false ) {
		echo $fields_presenter->html( $field_definitions->get( 'settings' ) );
	}

	if ( $this->is_social_enabled ) {
		echo $fields_presenter->html( $field_definitions->get( 'social' ) );
	}
}