WPSEO_Metabox_Section_React::display_content()publicYoast 1.0

Outputs the section content.

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

Хуков нет.

Возвращает

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

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

$WPSEO_Metabox_Section_React = new WPSEO_Metabox_Section_React();
$WPSEO_Metabox_Section_React->display_content();

Код WPSEO_Metabox_Section_React::display_content() Yoast 22.4

public function display_content() {
	add_filter( 'wp_kses_allowed_html', [ 'WPSEO_Utils', 'extend_kses_post_with_forms' ] );
	add_filter( 'wp_kses_allowed_html', [ 'WPSEO_Utils', 'extend_kses_post_with_a11y' ] );

	printf(
		'<div role="tabpanel" id="wpseo-meta-section-%1$s" aria-labelledby="wpseo-meta-tab-%1$s" tabindex="0" class="wpseo-meta-section">',
		esc_attr( $this->name )
	);
	echo wp_kses_post( $this->content );
	echo '<div id="wpseo-metabox-root" class="wpseo-metabox-root"></div>';
	echo wp_kses_post( $this->html_after );
	echo '</div>';

	remove_filter( 'wp_kses_allowed_html', [ 'WPSEO_Utils', 'extend_kses_post_with_forms' ] );
	remove_filter( 'wp_kses_allowed_html', [ 'WPSEO_Utils', 'extend_kses_post_with_a11y' ] );
}