WP_Style_Engine_CSS_Declarations::remove_declaration()publicWP 6.1.0

Removes a single declaration.

Method of the class: WP_Style_Engine_CSS_Declarations{}

No Hooks.

Return

WP_Style_Engine_CSS_Declarations. Returns the object to allow chaining methods.

Usage

$WP_Style_Engine_CSS_Declarations = new WP_Style_Engine_CSS_Declarations();
$WP_Style_Engine_CSS_Declarations->remove_declaration( $property );
$property(string) (required)
The CSS property.

Changelog

Since 6.1.0 Introduced.

WP_Style_Engine_CSS_Declarations::remove_declaration() code WP 6.5.2

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