WP Manifestindependent plugin directory
manifest / editor / schedule-block

Schedule block

Add scheduling options to WordPress blocks (Gutenberg)

★ 0stars
110release downloads
v1.0.0latest · 3 years ago

Install

Download schedule-block.zip From the v1.0.0 release on GitHub, Apr 17, 2023

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/superhuit-agency/schedule-block/releases/download/v1.0.0/schedule-block.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

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

Releases

1 release. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.0.0 latest
Apr 17, 2023 3 years ago
schedule-block.zip
110