[ Index ]

PHP Cross Reference of WordPress




/wp-includes/js/dist/ -> reusable-blocks.js (summary)

External dependencies

File Size: 489 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions


Functions that are not part of a class:

__experimentalSetEditingReusableBlock(clientId, isEditing)   X-Ref
Returns an action descriptor for SET_EDITING_REUSABLE_BLOCK action.

param: {string}  clientId  The clientID of the reusable block to target.
param: {boolean} isEditing Whether the block should be in editing state.
return: {Object} Action descriptor.

isEditingReusableBlock()   X-Ref
WordPress dependencies

__experimentalIsEditingReusableBlock(state, clientId)   X-Ref
Returns true if reusable block is in the editing state.

param: {Object} state    Global application state.
param: {number} clientId the clientID of the block.
return: {boolean} Whether the reusable block is in the editing state.

ReusableBlockConvertButton(_ref)   X-Ref
Menu control to convert block(s) to reusable block.

param: {Object}   props              Component props.
param: {string[]} props.clientIds    Client ids of selected blocks.
param: {string}   props.rootClientId ID of the currently selected top-level block.
return: {import('@wordpress/element').WPComponent} The menu control or null.

ReusableBlocksManageButton(_ref)   X-Ref
No description

ReusableBlocksMenuItems(_ref)   X-Ref
No description

Generated: Sun Aug 14 01:00:02 2022 Cross-referenced by PHPXref 0.7.1