wp-includes/style-engine/class-wp-style-engine-css-rule.php:89Sets the declarations.
$declarationsstring[]|WP_Style_Engine_CSS_DeclarationsWP_Style_Engine_CSS_Rule public function add_declarations( $declarations ) { $is_declarations_object = ! is_array( $declarations ); $declarations_array = $is_declarations_object ? $declarations->get_declarations() : $declarations; if ( null === $this->declarations ) { if ( $is_declarations_object ) { $this->declarations = $declarations; return $this; } $this->declarations = new WP_Style_Engine_CSS_Declarations( $declarations_array ); } $this->declarations->add_declarations( $declarations_array ); return $this; }Introduced in 6.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/style-engine/class-wp-style-engine-css-rule.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.