WP_Block_Editor_Context::__construct( array $settings = array() )


Description Description

Populates optional properties for a given block editor context.

Top ↑

Parameters Parameters


(array) (Optional) The list of optional settings to expose in a given context.

Default value: array()

Top ↑

Source Source

File: wp-includes/class-wp-block-editor-context.php

	public function __construct( array $settings = array() ) {
		if ( isset( $settings['post'] ) ) {
			$this->post = $settings['post'];

Top ↑

Changelog Changelog

Version Description
5.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.