WP_Style_Engine_CSS_Declarations::remove_declaration()publicWP 6.1.0

Removes a single declaration.

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

Хуков нет.

Возвращает

WP_Style_Engine_CSS_Declarations. Returns the object to allow chaining methods.

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

$WP_Style_Engine_CSS_Declarations = new WP_Style_Engine_CSS_Declarations();
$WP_Style_Engine_CSS_Declarations->remove_declaration( $property );
$property(строка) (обязательный)
The CSS property.

Список изменений

С версии 6.1.0 Введена.

Код WP_Style_Engine_CSS_Declarations::remove_declaration() WP 6.1.1

public function remove_declaration( $property ) {
	unset( $this->declarations[ $property ] );
	return $this;
}