Title: The Editor’s UI Data
Published: March 9, 2021
Last modified: November 5, 2026

---

# The Editor’s UI Data

## In this article

 * [Selectors](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#selectors)
    - [areMetaBoxesInitialized](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#aremetaboxesinitialized)
    - [getActiveGeneralSidebarName](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getactivegeneralsidebarname)
    - [getActiveMetaBoxLocations](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getactivemetaboxlocations)
    - [getAllMetaBoxes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getallmetaboxes)
    - [getEditedPostTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#geteditedposttemplate)
    - [getEditorMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#geteditormode)
    - [getHiddenBlockTypes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#gethiddenblocktypes)
    - [getMetaBoxesPerLocation](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getmetaboxesperlocation)
    - [getPreference](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getpreference)
    - [getPreferences](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getpreferences)
    - [hasMetaBoxes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#hasmetaboxes)
    - [isEditingTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditingtemplate)
    - [isEditorPanelEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditorpanelenabled)
    - [isEditorPanelOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditorpanelopened)
    - [isEditorPanelRemoved](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditorpanelremoved)
    - [isEditorSidebarOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditorsidebaropened)
    - [isFeatureActive](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#isfeatureactive)
    - [isInserterOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#isinserteropened)
    - [isListViewOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#islistviewopened)
    - [isMetaBoxLocationActive](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ismetaboxlocationactive)
    - [isMetaBoxLocationVisible](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ismetaboxlocationvisible)
    - [isModalActive](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ismodalactive)
    - [isPluginItemPinned](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ispluginitempinned)
    - [isPluginSidebarOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ispluginsidebaropened)
    - [isPublishSidebarOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ispublishsidebaropened)
    - [isSavingMetaBoxes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#issavingmetaboxes)
 * [Actions](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#actions)
    - [closeGeneralSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#closegeneralsidebar)
    - [closeModal](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#closemodal)
    - [closePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#closepublishsidebar)
    - [hideBlockTypes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#hideblocktypes)
    - [initializeMetaBoxes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#initializemetaboxes)
    - [metaBoxUpdatesFailure](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#metaboxupdatesfailure)
    - [metaBoxUpdatesSuccess](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#metaboxupdatessuccess)
    - [openGeneralSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#opengeneralsidebar)
    - [openModal](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#openmodal)
    - [openPublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#openpublishsidebar)
    - [removeEditorPanel](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#removeeditorpanel)
    - [requestMetaBoxUpdates](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#requestmetaboxupdates)
    - [setAvailableMetaBoxesPerLocation](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#setavailablemetaboxesperlocation)
    - [setIsEditingTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#setiseditingtemplate)
    - [setIsInserterOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#setisinserteropened)
    - [setIsListViewOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#setislistviewopened)
    - [showBlockTypes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#showblocktypes)
    - [switchEditorMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#switcheditormode)
    - [toggleDistractionFree](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#toggledistractionfree)
    - [toggleEditorPanelEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#toggleeditorpanelenabled)
    - [toggleEditorPanelOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#toggleeditorpanelopened)
    - [toggleFeature](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#togglefeature)
    - [toggleFullscreenMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#togglefullscreenmode)
    - [togglePinnedPluginItem](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#togglepinnedpluginitem)
    - [togglePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#togglepublishsidebar)
    - [updatePreferredStyleVariations](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#updatepreferredstylevariations)

Namespace: `core/edit-post`.

## 󠀁[Selectors](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#selectors)󠁿

### 󠀁[areMetaBoxesInitialized](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#aremetaboxesinitialized)󠁿

Returns true if meta boxes are initialized.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether meta boxes are initialized.

### 󠀁[getActiveGeneralSidebarName](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getactivegeneralsidebarname)󠁿

Returns the current active general sidebar name, or null if there is no general 
sidebar active. The active general sidebar is a unique name to identify either an
editor or plugin sidebar.

Examples:

 * `edit-post/document`
 * `my-plugin/insert-image-sidebar`

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `?string`: Active general sidebar name.

### 󠀁[getActiveMetaBoxLocations](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getactivemetaboxlocations)󠁿

Returns an array of active meta box locations.

_Parameters_

 * _state_ `Object`: Post editor state.

_Returns_

 * `string[]`: Active meta box locations.

### 󠀁[getAllMetaBoxes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getallmetaboxes)󠁿

Returns the list of all the available meta boxes.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `Array`: List of meta boxes.

### 󠀁[getEditedPostTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#geteditedposttemplate)󠁿

Retrieves the template of the currently edited post.

_Returns_

 * `?Object`: Post Template.

### 󠀁[getEditorMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#geteditormode)󠁿

Returns the current editing mode.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `string`: Editing mode.

### 󠀁[getHiddenBlockTypes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#gethiddenblocktypes)󠁿

Returns an array of blocks that are hidden.

_Returns_

 * `Array`: A list of the hidden block types

### 󠀁[getMetaBoxesPerLocation](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getmetaboxesperlocation)󠁿

Returns the list of all the available meta boxes for a given location.

_Parameters_

 * _state_ `Object`: Global application state.
 * _location_ `string`: Meta box location to test.

_Returns_

 * `?Array`: List of meta boxes.

### 󠀁[getPreference](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getpreference)󠁿

_Parameters_

 * _state_ `Object`: Global application state.
 * _preferenceKey_ `string`: Preference Key.
 * _defaultValue_ `*`: Default Value.

_Returns_

 * `*`: Preference Value.

### 󠀁[getPreferences](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#getpreferences)󠁿

Returns the preferences (these preferences are persisted locally).

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `Object`: Preferences Object.

### 󠀁[hasMetaBoxes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#hasmetaboxes)󠁿

Returns true if the post is using Meta Boxes

_Parameters_

 * _state_ `Object`: Global application state

_Returns_

 * `boolean`: Whether there are metaboxes or not.

### 󠀁[isEditingTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditingtemplate)󠁿

>  **Deprecated**

Returns true if the template editing mode is enabled.

### 󠀁[isEditorPanelEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditorpanelenabled)󠁿

>  **Deprecated**

Returns true if the given panel is enabled, or false otherwise. Panels are enabled
by default.

_Parameters_

 * _state_ `Object`: Global application state.
 * _panelName_ `string`: A string that identifies the panel.

_Returns_

 * `boolean`: Whether or not the panel is enabled.

### 󠀁[isEditorPanelOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditorpanelopened)󠁿

>  **Deprecated**

Returns true if the given panel is open, or false otherwise. Panels are closed by
default.

_Parameters_

 * _state_ `Object`: Global application state.
 * _panelName_ `string`: A string that identifies the panel.

_Returns_

 * `boolean`: Whether or not the panel is open.

### 󠀁[isEditorPanelRemoved](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditorpanelremoved)󠁿

>  **Deprecated**

Returns true if the given panel was programmatically removed, or false otherwise.
All panels are not removed by default.

_Parameters_

 * _state_ `Object`: Global application state.
 * _panelName_ `string`: A string that identifies the panel.

_Returns_

 * `boolean`: Whether or not the panel is removed.

### 󠀁[isEditorSidebarOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#iseditorsidebaropened)󠁿

Returns true if the editor sidebar is opened.

_Parameters_

 * _state_ `Object`: Global application state

_Returns_

 * `boolean`: Whether the editor sidebar is opened.

### 󠀁[isFeatureActive](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#isfeatureactive)󠁿

Returns whether the given feature is enabled or not.

_Parameters_

 * _state_ `Object`: Global application state.
 * _feature_ `string`: Feature slug.

_Returns_

 * `boolean`: Is active.

### 󠀁[isInserterOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#isinserteropened)󠁿

>  **Deprecated**

Returns true if the inserter is opened.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the inserter is opened.

### 󠀁[isListViewOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#islistviewopened)󠁿

Returns true if the list view is opened.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the list view is opened.

### 󠀁[isMetaBoxLocationActive](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ismetaboxlocationactive)󠁿

Returns true if there is an active meta box in the given location, or false otherwise.

_Parameters_

 * _state_ `Object`: Post editor state.
 * _location_ `string`: Meta box location to test.

_Returns_

 * `boolean`: Whether the meta box location is active.

### 󠀁[isMetaBoxLocationVisible](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ismetaboxlocationvisible)󠁿

Returns true if a metabox location is active and visible

_Parameters_

 * _state_ `Object`: Post editor state.
 * _location_ `string`: Meta box location to test.

_Returns_

 * `boolean`: Whether the meta box location is active and visible.

### 󠀁[isModalActive](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ismodalactive)󠁿

>  **Deprecated** since WP 6.3 use `core/interface` store’s selector with the same
> name instead.

Returns true if a modal is active, or false otherwise.

_Parameters_

 * _state_ `Object`: Global application state.
 * _modalName_ `string`: A string that uniquely identifies the modal.

_Returns_

 * `boolean`: Whether the modal is active.

### 󠀁[isPluginItemPinned](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ispluginitempinned)󠁿

Returns true if the plugin item is pinned to the header. When the value is not set
it defaults to true.

_Parameters_

 * _state_ `Object`: Global application state.
 * _pluginName_ `string`: Plugin item name.

_Returns_

 * `boolean`: Whether the plugin item is pinned.

### 󠀁[isPluginSidebarOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ispluginsidebaropened)󠁿

Returns true if the plugin sidebar is opened.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the plugin sidebar is opened.

### 󠀁[isPublishSidebarOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#ispublishsidebaropened)󠁿

>  **Deprecated**

Returns true if the publish sidebar is opened.

_Parameters_

 * _state_ `Object`: Global application state

_Returns_

 * `boolean`: Whether the publish sidebar is open.

### 󠀁[isSavingMetaBoxes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#issavingmetaboxes)󠁿

Returns true if the Meta Boxes are being saved.

_Parameters_

 * _state_ `Object`: Global application state.

_Returns_

 * `boolean`: Whether the metaboxes are being saved.

## 󠀁[Actions](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#actions)󠁿

### 󠀁[closeGeneralSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#closegeneralsidebar)󠁿

Returns an action object signalling that the user closed the sidebar.

### 󠀁[closeModal](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#closemodal)󠁿

>  **Deprecated** since WP 6.3 use `core/interface` store’s action with the same
> name instead.

Returns an action object signalling that the user closed a modal.

_Returns_

 * `Object`: Action object.

### 󠀁[closePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#closepublishsidebar)󠁿

>  **Deprecated**

Returns an action object used in signalling that the user closed the publish sidebar.

_Returns_

 * `Object`: Action object.

### 󠀁[hideBlockTypes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#hideblocktypes)󠁿

Update the provided block types to be hidden.

_Parameters_

 * _blockNames_ `string[]`: Names of block types to hide.

### 󠀁[initializeMetaBoxes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#initializemetaboxes)󠁿

Initializes WordPress `postboxes` script and the logic for saving meta boxes.

### 󠀁[metaBoxUpdatesFailure](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#metaboxupdatesfailure)󠁿

Returns an action object used to signal a failed meta box update.

_Returns_

 * `Object`: Action object.

### 󠀁[metaBoxUpdatesSuccess](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#metaboxupdatessuccess)󠁿

Returns an action object used to signal a successful meta box update.

_Returns_

 * `Object`: Action object.

### 󠀁[openGeneralSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#opengeneralsidebar)󠁿

Returns an action object used in signalling that the user opened an editor sidebar.

_Parameters_

 * _name_ `?string`: Sidebar name to be opened.

### 󠀁[openModal](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#openmodal)󠁿

>  **Deprecated** since WP 6.3 use `core/interface` store’s action with the same
> name instead.

Returns an action object used in signalling that the user opened a modal.

_Parameters_

 * _name_ `string`: A string that uniquely identifies the modal.

_Returns_

 * `Object`: Action object.

### 󠀁[openPublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#openpublishsidebar)󠁿

>  **Deprecated**

Returns an action object used in signalling that the user opened the publish sidebar.

_Returns_

 * `Object`: Action object

### 󠀁[removeEditorPanel](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#removeeditorpanel)󠁿

>  **Deprecated**

Returns an action object used to remove a panel from the editor.

_Parameters_

 * _panelName_ `string`: A string that identifies the panel to remove.

_Returns_

 * `Object`: Action object.

### 󠀁[requestMetaBoxUpdates](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#requestmetaboxupdates)󠁿

Update a metabox.

### 󠀁[setAvailableMetaBoxesPerLocation](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#setavailablemetaboxesperlocation)󠁿

Stores info about which Meta boxes are available in which location.

_Parameters_

 * _metaBoxesPerLocation_ `Object`: Meta boxes per location.

### 󠀁[setIsEditingTemplate](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#setiseditingtemplate)󠁿

>  **Deprecated**

Returns an action object used to switch to template editing.

### 󠀁[setIsInserterOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#setisinserteropened)󠁿

>  **Deprecated**

Returns an action object used to open/close the inserter.

_Parameters_

 * _value_ `boolean|Object`: Whether the inserter should be opened (true) or closed(
   false).

### 󠀁[setIsListViewOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#setislistviewopened)󠁿

>  **Deprecated**

Returns an action object used to open/close the list view.

_Parameters_

 * _isOpen_ `boolean`: A boolean representing whether the list view should be opened
   or closed.

### 󠀁[showBlockTypes](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#showblocktypes)󠁿

Update the provided block types to be visible.

_Parameters_

 * _blockNames_ `string[]`: Names of block types to show.

### 󠀁[switchEditorMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#switcheditormode)󠁿

>  **Deprecated**

Triggers an action used to switch editor mode.

_Parameters_

 * _mode_ `string`: The editor mode.

### 󠀁[toggleDistractionFree](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#toggledistractionfree)󠁿

>  **Deprecated**

Action that toggles Distraction free mode. Distraction free mode expects there are
no sidebars, as due to the z-index values set, you can’t close sidebars.

### 󠀁[toggleEditorPanelEnabled](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#toggleeditorpanelenabled)󠁿

>  **Deprecated**

Returns an action object used to enable or disable a panel in the editor.

_Parameters_

 * _panelName_ `string`: A string that identifies the panel to enable or disable.

_Returns_

 * `Object`: Action object.

### 󠀁[toggleEditorPanelOpened](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#toggleeditorpanelopened)󠁿

>  **Deprecated**

Opens a closed panel and closes an open panel.

_Parameters_

 * _panelName_ `string`: A string that identifies the panel to open or close.

### 󠀁[toggleFeature](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#togglefeature)󠁿

Triggers an action used to toggle a feature flag.

_Parameters_

 * _feature_ `string`: Feature name.

### 󠀁[toggleFullscreenMode](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#togglefullscreenmode)󠁿

Action that toggles the Fullscreen Mode view option.

### 󠀁[togglePinnedPluginItem](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#togglepinnedpluginitem)󠁿

Triggers an action object used to toggle a plugin name flag.

_Parameters_

 * _pluginName_ `string`: Plugin name.

### 󠀁[togglePublishSidebar](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#togglepublishsidebar)󠁿

>  **Deprecated**

Returns an action object used in signalling that the user toggles the publish sidebar.

_Returns_

 * `Object`: Action object

### 󠀁[updatePreferredStyleVariations](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-post/?output_format=md#updatepreferredstylevariations)󠁿

>  **Deprecated**

Returns an action object used in signaling that a style should be auto-applied when
a block is created.

First published

March 9, 2021

Last updated

November 5, 2026

Edit article

[ Improve it on GitHub: The Editor’s UI Data ](https://github.com/WordPress/gutenberg/edit/trunk/docs/reference-guides/data/data-core-edit-post.md)

[  Previous: Customize Widgets](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-customize-widgets/)

[  Next: Edit Site](https://developer.wordpress.org/block-editor/reference-guides/data/data-core-edit-site/)