WP_Style_Engine_CSS_Declarations::add_declarations() – Adds multiple declarations.

You appear to be a bot. Output may be restricted

Description

Adds multiple declarations.

Usage

$WP_Style_Engine_CSS_Declarations = WP_Style_Engine_CSS_Declarations::add_declarations( $declarations );

Parameters

$declarations
( array ) required – An array of declarations.

Returns

WP_Style_Engine_CSS_Declarations Returns the object to allow chaining methods.

Source

File name: wordpress/wp-includes/style-engine/class-wp-style-engine-css-declarations.php


Lines:

1 to 7 of 7
  public function add_declarations( $declarations ) {
    foreach ( $declarations as $property => $value ) {
      $this->add_declaration( $property, $value );
    }
    return $this;
  }
 

 View on GitHub View on Trac