| 1 |
=== Block Manager === |
| 2 |
Contributors: dcooney, connekthq |
| 3 |
Tags: remove blocks, disable blocks, disable patterns, remove patterns, block category |
| 4 |
Homepage: https://connekthq.com/ |
| 5 |
Donate link: https://connekthq.com/donate |
| 6 |
Requires at least: 5.0 |
| 7 |
Requires PHP: 7.0 |
| 8 |
Tested up to: 7.0 |
| 9 |
License: GPLv2 or later |
| 10 |
Stable tag: 3.2.1 |
| 11 |
|
| 12 |
Disable unwanted blocks and patterns, organize blocks by changing categories - complete control over your WordPress Block Editor experience. |
| 13 |
|
| 14 |
== Description == |
| 15 |
|
| 16 |
Block Manager gives you complete control over the WordPress Block Editor by allowing you to: |
| 17 |
|
| 18 |
� |
| 19 |
**Disable Blocks** - Remove unwanted blocks from the Block Inserter and Editor |
| 20 |
� |
| 21 |
**Disable Patterns** - Hide block patterns you don't need with a single click |
| 22 |
� |
| 23 |
**Change Block Categories** - Reorganize blocks by updating their categories for better workflow |
| 24 |
|
| 25 |
Simplify your WordPress editing experience by removing clutter and organizing blocks exactly how you need them. Perfect for client sites, custom workflows, and maintaining a clean, focused Block Editor. |
| 26 |
|
| 27 |
### Key Features |
| 28 |
|
| 29 |
**Disable Blocks** |
| 30 |
- Globally remove any block from the Block Inserter and Block Editor. |
| 31 |
- Disable block variations individually while keeping the core block. |
| 32 |
- Control Embed blocks (Twitter, Facebook, YouTube, etc.) to remove unwanted options. |
| 33 |
- Toggle entire block categories on/off with one click. |
| 34 |
|
| 35 |
**Disable Block Patterns** |
| 36 |
- Remove unwanted block patterns with a simple toggle. |
| 37 |
- Hide core WordPress patterns that don't fit your site. |
| 38 |
- Clean up the pattern library for a focused editing experience. |
| 39 |
|
| 40 |
**Change Block Categories** |
| 41 |
- Update the category of any block to better organize your Block Inserter. |
| 42 |
- Create a custom workflow that matches your editing process. |
| 43 |
- Improve findability by grouping related blocks together. |
| 44 |
|
| 45 |
**Additional Features** |
| 46 |
- **Code Hooks**: Use filters to control blocks and patterns via `functions.php`. |
| 47 |
- **Search and Filter**: Quickly locate blocks and patterns with built-in search. |
| 48 |
- **Export Options**: Generate code snippets for syncing across environments. |
| 49 |
- **Status Reports**: View active and disabled blocks at a glance. |
| 50 |
|
| 51 |
### Hooks & Filters |
| 52 |
|
| 53 |
Use Block Manager hooks to controls blocks via code and sync options across multiple WordPress environments. |
| 54 |
|
| 55 |
#### gbm_disabled_blocks |
| 56 |
|
| 57 |
Use the `gbm_disabled_blocks` hook to remove blocks via backend code. |
| 58 |
|
| 59 |
// functions.php |
| 60 |
add_filter( 'gbm_disabled_blocks', function() { |
| 61 |
return [ |
| 62 |
'core/buttons', |
| 63 |
'core/columns', |
| 64 |
'core/freeform', |
| 65 |
'core/table' |
| 66 |
]; |
| 67 |
}); |
| 68 |
|
| 69 |
#### gbm_disabled_patterns |
| 70 |
|
| 71 |
Use the `gbm_disabled_patterns` hook to remove block patterns via backend code. |
| 72 |
|
| 73 |
// functions.php |
| 74 |
add_filter( 'gbm_disabled_patterns', function() { |
| 75 |
return ['gbm/core-patterns', 'core/query-standard-posts', 'core/query-medium-posts']; |
| 76 |
}); |
| 77 |
|
| 78 |
#### gbm_block_categories |
| 79 |
|
| 80 |
Use the `gbm_block_categories` hook to update block categories via backend code. |
| 81 |
|
| 82 |
// functions.php |
| 83 |
add_filter( 'gbm_block_categories', function() { |
| 84 |
return [ |
| 85 |
[ 'block' => 'core/html', 'cat' => 'design' ], |
| 86 |
[ 'block' => 'core/cover', 'cat' => 'design' ], |
| 87 |
[ 'block' => 'core/details', 'cat' => 'design' ] |
| 88 |
]; |
| 89 |
}); |
| 90 |
|
| 91 |
#### block_manager_user_role |
| 92 |
|
| 93 |
Update the minimum user role allowed to access the Block Manager plugin. |
| 94 |
|
| 95 |
// functions.php |
| 96 |
add_filter( |
| 97 |
'block_manager_user_role', |
| 98 |
'edit_theme_options' // Default: activate_plugins |
| 99 |
); |
| 100 |
|
| 101 |
== Installation == |
| 102 |
|
| 103 |
How to install Block Manager. |
| 104 |
|
| 105 |
= Using The WordPress Dashboard = |
| 106 |
|
| 107 |
1. Navigate to the 'Add New' in the plugins dashboard |
| 108 |
2. Search for 'Block Manager' |
| 109 |
3. Click 'Install Now' |
| 110 |
4. Activate the plugin on the Plugin dashboard |
| 111 |
|
| 112 |
= Uploading in WordPress Dashboard = |
| 113 |
|
| 114 |
1. Navigate to the 'Add New' in the plugins dashboard |
| 115 |
2. Navigate to the 'Upload' area |
| 116 |
3. Select `block-manager.zip` from your computer |
| 117 |
4. Click 'Install Now' |
| 118 |
5. Activate the plugin in the Plugin dashboard |
| 119 |
|
| 120 |
= Using FTP = |
| 121 |
|
| 122 |
1. Download `block-manager.zip` |
| 123 |
2. Extract the `block-manager` directory to your computer |
| 124 |
3. Upload the `block-manager` directory to the `/wp-content/plugins/` directory |
| 125 |
4. Activate the plugin in the Plugin dashboard |
| 126 |
|
| 127 |
Then navigate to `wp-admin -> Settings -> Block Manager` to use the plugin. |
| 128 |
|
| 129 |
== Screenshots == |
| 130 |
|
| 131 |
1. Disable Blocks: Easily remove unwanted WordPress blocks by toggling the active state of each block. |
| 132 |
2. Block Toggle: Disable all blocks in a block categories with a single click. |
| 133 |
3. Block Categories: Improve the admin editing experience by updating the category of each block using the Category Switcher. |
| 134 |
4. Disable Block Patterns: Remove unwanted block patterns and core patterns by toggling the active state of each pattern. |
| 135 |
4. Status Reports: Total active and disabled blocks are displayed in the plugin sidebar. |
| 136 |
5. Embed Blocks: Choose the Embed blocks you want to allow on your site and remove the majority of useless options. |
| 137 |
|
| 138 |
== Changelog == |
| 139 |
|
| 140 |
= 3.2.1 - June 10, 2026 = |
| 141 |
* UPDATE: Added compatibility check with WP 7.0. |
| 142 |
* UPDATE: Various code refactoring and organization. |
| 143 |
|
| 144 |
= 3.2.0 - January 14, 2026 = |
| 145 |
* NEW: Added support for Stretchy Paragraph and Stretchy Heading block variations. |
| 146 |
* Fix: Fixed issue with Embed block variation display. |
| 147 |
* NEW: Added WordPress version detection to improve compatibility with future WP releases. |
| 148 |
* UPDATE: Project dependency updates. |
| 149 |
* UPDATE: Various code refactoring and organization. |
| 150 |
|
| 151 |
= 3.1.2 - December 8, 2025 = |
| 152 |
* FIX: Fixed issue WP 6.9 and missing required sprintf package. |
| 153 |
* UPDATE: Project dependency updates. |
| 154 |
|
| 155 |
= 3.1.1 - March 15, 2025 = |
| 156 |
* FIX: Fixed issue with rendering block icons of various plugins. Now using default WP block editor `BlockIcon` rendering. |
| 157 |
* FIX: Fixed issue with blocks not showing in Block Manager when being registered using `enqueue_block_assets` hook. |
| 158 |
* UPDATE: Admin UI/UX updates. |
| 159 |
|
| 160 |
= 3.1.0 - November 3, 2024 = |
| 161 |
* UPDATE: New admin UI. |
| 162 |
* UPDATE: Various changes for upcoming Block Manager Pro plugin. |
| 163 |
|
| 164 |
= 3.0.0 - April 3, 2024 = |
| 165 |
* NEW: Added support for disabling block patterns and core block patterns. |
| 166 |
* FIX: Fixed incorrect number of filtered blocks display in Blocks sidebar. |
| 167 |
* FIX: Fixed issue with return value in admin_footer text. |
| 168 |
* UPDATE: Updated plugin installer vendor file. |
| 169 |
* UPDATE: Various code refactoring and organization. |
| 170 |
* UPDATE: Various security updates. |
| 171 |
|
| 172 |
= 2.1.1 - November 1, 2023 = |
| 173 |
* HOTFIX: Fix for undefined React key warning when `WP_DEBUG` is enabled. |
| 174 |
|
| 175 |
= 2.1.0 - November 1, 2023 = |
| 176 |
* NEW: Adding notification system for feedback after an action is performed. |
| 177 |
* UPDATE: Added display indicators for variation blocks. |
| 178 |
* FIX: Fixed potential upgrade issue with disabled blocks throwing admin error due to object vs array data. |
| 179 |
* FIX: Fixed issue with missing loading animation. |
| 180 |
* FIX: Fixed issue with block variations not counting towards block count. |
| 181 |
|
| 182 |
= 2.0.0 - October 20, 2023 = |
| 183 |
* NEW - New admin interface and interactions for the Block and Block Categories pages. |
| 184 |
* NEW: Added block category export and hook `gbm_block_categories` to allow for changing block categories at the theme level. |
| 185 |
* UPDATE: Updated build scripts and dependencies to use wp-scripts. |
| 186 |
* UPDATE: Block Manager is now supported on Widget screen. |
| 187 |
* FIX: Fixed issue with some missing block definitions. |
| 188 |
* FIX: Fixed issues with block icons not rendering for some blocks. |
| 189 |
* FIX: Fixed issue with various blocks crashing the Block Manager edit screen. |
| 190 |
* FIX: Other various bug fixes and overall improvements. |
| 191 |
|
| 192 |
= 1.2.5 - May 23, 2023 = |
| 193 |
* FIX - Fixed potential issue with JS errors on Site Editor screens. |
| 194 |
* UPDATE - WP version bump and testing. |
| 195 |
|
| 196 |
= 1.2.4 - November 30, 2022 = |
| 197 |
* HOTFIX - Fixed issue with plugin not working on `edit` screens. |
| 198 |
|
| 199 |
= 1.2.3 - November 19, 2022 = |
| 200 |
* FIX: Added fix for blank screen when users have JetPack plugin enabled. |
| 201 |
* FIX: Fixed issue with missing semi-colon in Block Manager export functionality. |
| 202 |
* FIX: Added fix for only loading the block removal script on `New` and `Edit` screens. |
| 203 |
|
| 204 |
= 1.2.2 - August 17, 2021 = |
| 205 |
* NEW - Added new Reset option that will clear all disabled blocks. |
| 206 |
* FIX - Added fix for possible issue with icon width on blocks admin page. |
| 207 |
* UPDATE - Updated tab navigation inside the plugin to make it more clear which section was being edited. |
| 208 |
|
| 209 |
= 1.2.1 - February 28, 2021 = |
| 210 |
* UPDATE - Added Category Switcher support for all block including core Gutenberg blocks. |
| 211 |
|
| 212 |
= 1.2 - February 27, 2021 = |
| 213 |
* NEW - Added new Category Switcher. |
| 214 |
* The Category Switcher provides functionality for changing the category core Gutenberg blocks. |
| 215 |
* Changing a block category will update the location of the block in the Gutenberg Block Inserter while editing posts. |
| 216 |
* FIX - Fixed issue with missing semi-colon in export code. |
| 217 |
* UPDATE - Various admin UI/UX updates. |
| 218 |
|
| 219 |
= 1.1 - January 19, 2021 = |
| 220 |
|
| 221 |
* NEW - Added new `gbm_disabled_blocks` filter to allow for disabling blocks via functions.php |
| 222 |
* NEW - Added `Export` option to dynamically build a pre-populated `gbm_disabled_blocks` filter. |
| 223 |
* NEW - Added Grid/List view toggle. |
| 224 |
|
| 225 |
= 1.0.1 - January 2, 2021 = |
| 226 |
|
| 227 |
- 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. |
| 228 |
- FIX - Fixed REST API warning for missing `permissions_callback`. |
| 229 |
|
| 230 |
= 1.0 - January 6, 2020 = |
| 231 |
|
| 232 |
- Initial release |
| 233 |
|