Skip to content

Repository files navigation

Schedule block

Add scheduling options to WordPress blocks (Gutenberg)

Usage

Register the blocks you want to have the scheduling options available by adding block(s) through the javascript filter scheduleBlock.blocksToAddSchedule which should be enqueued in the editor.

Example

wp.hooks.addFilter('scheduleBlock.blocksToAddSchedule', 'my-plugin/namespace', function( blockNames ) {

	blockNames.push('core/heading');
	blockNames.push('core/image');
	// blockNames.push('my-plugin/block-name');

  return blockNames;
});

About

Add scheduling options to WordPress blocks (Gutenberg)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages