WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта
функция не описана

Yoast\WP\SEO\Integrations\Third_Party

Elementor::render_hidden_fields() protected Yoast 1.0

Renders the metabox hidden fields.

{} Это метод класса: Elementor{}

Хуки из метода
Возвращает

null. Ничего.

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

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

Код Elementor::render_hidden_fields() Yoast 16.8

<?php
protected function render_hidden_fields() {
	// Wrap in a form with an action and post_id for the submit.
	\printf(
		'<form id="yoast-form" method="post" action="%1$s"><input type="hidden" name="action" value="wpseo_elementor_save" /><input type="hidden" id="post_ID" name="post_id" value="%2$s" />',
		\esc_url( \admin_url( 'admin-ajax.php' ) ),
		\esc_attr( $this->get_metabox_post()->ID )
	);

	\wp_nonce_field( 'wpseo_elementor_save', '_wpseo_elementor_nonce' );
	// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: Meta_Fields_Presenter->present is considered safe.
	echo new Meta_Fields_Presenter( $this->get_metabox_post(), 'general' );

	if ( $this->is_advanced_metadata_enabled ) {
		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: Meta_Fields_Presenter->present is considered safe.
		echo new Meta_Fields_Presenter( $this->get_metabox_post(), 'advanced' );
	}

	// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: Meta_Fields_Presenter->present is considered safe.
	echo new Meta_Fields_Presenter( $this->get_metabox_post(), 'schema', $this->get_metabox_post()->post_type );

	if ( $this->social_is_enabled ) {
		// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Reason: Meta_Fields_Presenter->present is considered safe.
		echo new Meta_Fields_Presenter( $this->get_metabox_post(), 'social' );
	}

	\printf(
		'<input type="hidden" id="%1$s" name="%1$s" value="%2$s" />',
		\esc_attr( WPSEO_Meta::$form_prefix . 'slug' ),
		\esc_attr( $this->get_metabox_post()->post_name )
	);

	// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Output should be escaped in the filter.
	echo \apply_filters( 'wpseo_elementor_hidden_fields', '' );

	echo '</form>';
}