WP Manifestindependent plugin directory
manifest / editor / schedule-block

Schedule block

Add scheduling options to WordPress blocks (Gutenberg)

by superhuit · github.com/superhuit-agency/schedule-block

0stars
109release downloads
1forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/superhuit-agency/schedule-block/releases/download/v1.0.0/schedule-block.zip

Readme

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;
});

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
v1.0.0 Apr 17, 2023 schedule-block.zip 109