Yoast_Input_Select::get_attributes()privateYoast 1.0

Return the attribute string, when there are attributes set.

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

Хуков нет.

Возвращает

Строку.

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

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

Код Yoast_Input_Select::get_attributes() Yoast 22.4

private function get_attributes() {
	$attributes = $this->select_attributes;

	if ( ! empty( $attributes ) ) {
		array_walk( $attributes, [ $this, 'parse_attribute' ] );

		return implode( ' ', $attributes ) . ' ';
	}

	return '';
}