Yoast\WP\SEO\User_Meta\Framework\Custom_Meta
Inclusive_Language_Analysis_Disable::render_field()
Renders the custom meta's field in the user form.
Метод класса: Inclusive_Language_Analysis_Disable{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Inclusive_Language_Analysis_Disable = new Inclusive_Language_Analysis_Disable(); $Inclusive_Language_Analysis_Disable->render_field( $user_id ): void;
- $user_id(int) (обязательный)
- The user ID.
Код Inclusive_Language_Analysis_Disable::render_field() Inclusive Language Analysis Disable::render field Yoast 23.5
public function render_field( $user_id ): void { echo ' <input class="yoast-settings__checkbox double" type="checkbox" id="' . \esc_attr( $this->get_field_id() ) . '" name="' . \esc_attr( $this->get_field_id() ) . '" aria-describedby="' . \esc_attr( $this->get_field_id() ) . '_desc" value="on" ' . \checked( $this->get_value( $user_id ), 'on', false ) . '/>'; echo ' <label class="yoast-label-strong" for="' . \esc_attr( $this->get_field_id() ) . '">' . \esc_html__( 'Disable inclusive language analysis', 'wordpress-seo' ) . '</label><br>'; echo ' <p class="description" id="' . \esc_attr( $this->get_field_id() ) . '_desc">' . \esc_html__( 'Removes the inclusive language analysis section from the metabox and disables all inclusive language-related suggestions.', 'wordpress-seo' ) . '</p>'; }