Yoast\WP\SEO\User_Meta\Framework\Custom_Meta

Author_Metadesc::render_field()publicYoast 1.0

Renders the custom meta's field in the user form.

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

Хуков нет.

Возвращает

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

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

$Author_Metadesc = new Author_Metadesc();
$Author_Metadesc->render_field( $user_id ): void;
$user_id(int) (обязательный)
The user ID.

Код Author_Metadesc::render_field() Yoast 25.1

public function render_field( $user_id ): void {
	echo '

	<label for="' . \esc_attr( $this->get_field_id() ) . '">'
		. \esc_html__( 'Meta description to use for Author page', 'wordpress-seo' )
	. '</label>';

	echo '

	<textarea
		rows="5"
		cols="30"
		id="' . \esc_attr( $this->get_field_id() ) . '"
		class="yoast-settings__textarea yoast-settings__textarea--medium"
		name="' . \esc_attr( $this->get_field_id() ) . '">'
			. \esc_textarea( $this->get_value( $user_id ) )
	. '</textarea><br>';
}