WPSEO_Bulk_Description_List_Table::parse_page_specific_column()protectedYoast 1.0

Parse the metadescription.

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

Хуков нет.

Возвращает

Строку.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->parse_page_specific_column( $column_name, $record, $attributes );
$column_name(строка) (обязательный)
Column name.
$record(объект) (обязательный)
Data object.
$attributes(строка) (обязательный)
HTML attributes.

Код WPSEO_Bulk_Description_List_Table::parse_page_specific_column() Yoast 22.4

protected function parse_page_specific_column( $column_name, $record, $attributes ) {
	switch ( $column_name ) {
		case 'col_new_yoast_seo_metadesc':
			return sprintf(
				'<textarea id="%1$s" name="%1$s" class="wpseo-new-metadesc" data-id="%2$s" aria-labelledby="col_new_yoast_seo_metadesc"></textarea>',
				esc_attr( 'wpseo-new-metadesc-' . $record->ID ),
				esc_attr( $record->ID )
			);

		case 'col_existing_yoast_seo_metadesc':
			// @todo Inconsistent return/echo behavior R.
			// I traced the escaping of the attributes to WPSEO_Bulk_List_Table::column_attributes. Alexander.
			// The output of WPSEO_Bulk_List_Table::parse_meta_data_field is properly escaped.
			// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
			echo $this->parse_meta_data_field( $record->ID, $attributes );
			break;
	}
}