WPSEO_Taxonomy_Fields_Presenter::parse_row()privateYoast 1.0

Returns the HTML for the row which contains label, help and the field.

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

Хуков нет.

Возвращает

Строку.

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

// private - только в коде основоного (родительского) класса
$result = $this->parse_row( $label, $help, $field );
$label(строка) (обязательный)
The html for the label if there was a label set.
$help(WPSEO_Admin_Help_Panel) (обязательный)
The help panel to render in this row.
$field(строка) (обязательный)
The html for the field.

Код WPSEO_Taxonomy_Fields_Presenter::parse_row() Yoast 22.4

private function parse_row( $label, WPSEO_Admin_Help_Panel $help, $field ) {
	if ( $label !== '' || $help !== '' ) {
		return $label . $help->get_button_html() . $help->get_panel_html() . $field;
	}

	return $field;
}