GC_Block_Editor_Context::__construct()

最后更新于:2021-11-26 09:44:31

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

Constructor.

参数

$settings

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

Default value: array()

源文件

文件: gc-includes/class-gc-block-editor-context.php

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