Returns the current editing mode.
Parameters
- state: Global application state.
Returns true if the editor sidebar is opened.
Parameters
- state: Global application state
Returns
Whether the editor sidebar is opened.
Returns true if the plugin sidebar is opened.
Parameters
- state: Global application state
Returns
Whether the plugin sidebar is opened.
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: Global application state.
Returns
Active general sidebar name.
Returns the preferences (these preferences are persisted locally).
Parameters
- state: Global application state.
Returns
Preferences Object.
Parameters
- state: Global application state.
- preferenceKey: Preference Key.
- defaultValue: Default Value.
Returns
Preference Value.
Returns true if the publish sidebar is opened.
Parameters
- state: Global application state
Returns
Whether the publish sidebar is open.
Returns true if the given panel is enabled, or false otherwise. Panels are enabled by default.
Parameters
- state: Global application state.
- panelName: A string that identifies the panel.
Returns
Whether or not the panel is enabled.
Returns true if the given panel is open, or false otherwise. Panels are closed by default.
Parameters
- state: Global application state.
- panelName: A string that identifies the panel.
Returns
Whether or not the panel is open.
Returns true if a modal is active, or false otherwise.
Parameters
- state: Global application state.
- modalName: A string that uniquely identifies the modal.
Returns
Whether the modal is active.
Returns whether the given feature is enabled or not.
Parameters
- state: Global application state.
- feature: Feature slug.
Returns
Is active.
Returns true if the plugin item is pinned to the header. When the value is not set it defaults to true.
Parameters
- state: Global application state.
- pluginName: Plugin item name.
Returns
Whether the plugin item is pinned.
Returns an array of active meta box locations.
Parameters
- state: Post editor state.
Returns
Active meta box locations.
Returns true if a metabox location is active and visible
Parameters
- state: Post editor state.
- location: Meta box location to test.
Returns
Whether the meta box location is active and visible.
Returns true if there is an active meta box in the given location, or false otherwise.
Parameters
- state: Post editor state.
- location: Meta box location to test.
Returns
Whether the meta box location is active.
Returns the list of all the available meta boxes for a given location.
Parameters
- state: Global application state.
- location: Meta box location to test.
Returns
List of meta boxes.
Returns the list of all the available meta boxes.
Parameters
- state: Global application state.
Returns
List of meta boxes.
Returns true if the post is using Meta Boxes
Parameters
- state: Global application state
Returns
Whether there are metaboxes or not.
Returns true if the Meta Boxes are being saved.
Parameters
- state: Global application state.
Returns
Whether the metaboxes are being saved.
Returns an action object used in signalling that the user opened an editor sidebar.
Parameters
- name: Sidebar name to be opened.
Returns an action object signalling that the user closed the sidebar.
Returns an action object used in signalling that the user opened a modal.
Parameters
- name: A string that uniquely identifies the modal.
Returns an action object signalling that the user closed a modal.
Returns an action object used in signalling that the user opened the publish sidebar.
Returns an action object used in signalling that the user closed the publish sidebar.
Returns an action object used in signalling that the user toggles the publish sidebar.
Returns an action object used to enable or disable a panel in the editor.
Parameters
- panelName: A string that identifies the panel to enable or disable.
Returns an action object used to open or close a panel in the editor.
Parameters
- panelName: A string that identifies the panel to open or close.
Returns an action object used to toggle a feature flag.
Parameters
- feature: Feature name.
Returns an action object used to toggle a plugin name flag.
Parameters
- pluginName: Plugin name.
Returns an action object used in signaling what Meta boxes are available in which location.
Parameters
- metaBoxesPerLocation: Meta boxes per location.
Returns an action object used to request meta box update.
Returns an action object used signal a successful meta box update.