Constructor.
Description
Populates optional properties for a given block editor context.
Parameters
$settings
arrayoptional- The list of optional settings to expose in a given context.
Default:
array()
Source
public function __construct( array $settings = array() ) {
if ( isset( $settings['name'] ) ) {
$this->name = $settings['name'];
}
if ( isset( $settings['post'] ) ) {
$this->post = $settings['post'];
}
}
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.