Yoast_Input_Select::add_attribute()
Add an attribute to the attributes property.
Метод класса: Yoast_Input_Select{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$Yoast_Input_Select = new Yoast_Input_Select(); $Yoast_Input_Select->add_attribute( $attribute, $value );
- $attribute(строка) (обязательный)
- The name of the attribute to add.
- $value(строка) (обязательный)
- The value of the attribute.
Код Yoast_Input_Select::add_attribute() Yoast Input Select::add attribute Yoast 24.6
public function add_attribute( $attribute, $value ) { $this->select_attributes[ $attribute ] = $value; }