WordPress.org

Block Types Data Edit

Selectors Selectors

getBlockType getBlockType

Returns a block type by name.

Parameters

  • state: Data state.
  • name: Block type name.

Top ↑

getCategories getCategories

Returns all the available categories.

Parameters

  • state: Data state.

Returns

Categories list.

Top ↑

getDefaultBlockName getDefaultBlockName

Returns the name of the default block name.

Parameters

  • state: Data state.

Returns

Default block name.

Top ↑

getFallbackBlockName getFallbackBlockName

Returns the name of the fallback block name.

Parameters

  • state: Data state.

Returns

Fallback block name.

Top ↑

Actions Actions

Top ↑

addBlockTypes addBlockTypes

Returns an action object used in signalling that block types have been added.

Parameters

  • blockTypes: Block types received.

Top ↑

removeBlockTypes removeBlockTypes

Returns an action object used to remove a registered block type.

Parameters

  • names: Block name.

Top ↑

setDefaultBlockName setDefaultBlockName

Returns an action object used to set the default block name.

Parameters

  • name: Block name.

Top ↑

setFallbackBlockName setFallbackBlockName

Returns an action object used to set the fallback block name.

Parameters

  • name: Block name.

Top ↑

setCategories setCategories

Returns an action object used to set block categories.

Parameters

  • categories: Block categories.
Skip to toolbar