| 1 |
=== Gutenberg Block Manager === |
| 2 |
Contributors: dcooney, connekthq |
| 3 |
Tags: blocks, remove blocks, disable blocks, manage blocks, block administration |
| 4 |
Requires at least: 5.0 |
| 5 |
Tested up to: 5.6 |
| 6 |
License: GPLv2 or later |
| 7 |
Stable tag: trunk |
| 8 |
Homepage: https://connekthq.com/ |
| 9 |
Version: 1.1 |
| 10 |
|
| 11 |
Gutenberg Block Manager by [Connekt](https://connekthq.com) will allow you to manage the activation status of Gutenberg blocks and remove unwanted blocks from the WordPress post editor. |
| 12 |
|
| 13 |
== Description == |
| 14 |
|
| 15 |
The Gutenberg Block Manager is an intuitive tool for WordPress site admins to _globally_ manage the enabled/disabled state of each block. Disabled blocks will be removed from the block inserter on post edit screens. |
| 16 |
|
| 17 |
### Features |
| 18 |
|
| 19 |
- **Globally Enable/Disable Blocks** - Unlike the block manager functionality in the Gutenberg editor, this tool will globally enables/disables blocks for all users on your site. |
| 20 |
- **Block Search and Filter** - Quickly locate blocks using the block search functionality in the sidebar. |
| 21 |
- **Filter Hooks** - Use the `gbm_disabled_blocks` filter to control blocks from `functions.php`. |
| 22 |
|
| 23 |
### Filters |
| 24 |
|
| 25 |
#### gbm_disabled_blocks |
| 26 |
|
| 27 |
Use the `gbm_disabled_blocks` filter to control blocks via backend code. This makes it easier to control the status of blocks across multiple WordPress environments. |
| 28 |
|
| 29 |
``` |
| 30 |
add_filter('gbm_disabled_blocks', function(){ |
| 31 |
return ['core/buttons', 'core/columns', 'core/freeform', 'core/table']; |
| 32 |
}); |
| 33 |
``` |
| 34 |
|
| 35 |
== Installation == |
| 36 |
|
| 37 |
How to install Block Manager. |
| 38 |
|
| 39 |
= Using The WordPress Dashboard = |
| 40 |
|
| 41 |
1. Navigate to the 'Add New' in the plugins dashboard |
| 42 |
2. Search for 'Block Manager' |
| 43 |
3. Click 'Install Now' |
| 44 |
4. Activate the plugin on the Plugin dashboard |
| 45 |
|
| 46 |
= Uploading in WordPress Dashboard = |
| 47 |
|
| 48 |
1. Navigate to the 'Add New' in the plugins dashboard |
| 49 |
2. Navigate to the 'Upload' area |
| 50 |
3. Select `block-manager.zip` from your computer |
| 51 |
4. Click 'Install Now' |
| 52 |
5. Activate the plugin in the Plugin dashboard |
| 53 |
|
| 54 |
= Using FTP = |
| 55 |
|
| 56 |
1. Download `block-manager.zip` |
| 57 |
2. Extract the `block-manager` directory to your computer |
| 58 |
3. Upload the `block-manager` directory to the `/wp-content/plugins/` directory |
| 59 |
4. Activate the plugin in the Plugin dashboard |
| 60 |
|
| 61 |
Then navigate to `wp-admin -> Settings -> Block Manager` to use the plugin. |
| 62 |
|
| 63 |
== Screenshots == |
| 64 |
|
| 65 |
1. Block Manager WordPress Admin |
| 66 |
1. Disable all (or some) of the useless Embed blocks :) |
| 67 |
1. Disable entire block categories with a single click. |
| 68 |
|
| 69 |
== Changelog == |
| 70 |
|
| 71 |
= 1.1 - January 19, 2021 = |
| 72 |
|
| 73 |
* NEW - Added new `gbm_disabled_blocks` filter to allow for disabling blocks via functions.php |
| 74 |
* NEW - Added `Export` option to dynamically build a pre-populated `gbm_disabled_blocks` filter. |
| 75 |
* NEW - Added Grid/List view toggle. |
| 76 |
|
| 77 |
|
| 78 |
= 1.0.1 - January 2, 2021 = |
| 79 |
|
| 80 |
- NEW - Added support for Embed blocks (Twitter, Facebook, Spotify etc). These blocks were changed in WP 5.6 and the handler had to be updated to manage the active/inactive states. |
| 81 |
- FIX - Fixed REST API warning for missing `permissions_callback`. |
| 82 |
|
| 83 |
= 1.0 - January 6, 2020 = |
| 84 |
|
| 85 |
- Initial release |
| 86 |
|