Gutenberg Block Manager

plugin banner

Gutenberg Block Manager by Connekt will allow you to manage the activation status of Gutenberg blocks and remove unwanted blocks from the WordPress po …

Author:Darren Cooney (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.5.2
Plugin version:3.0.0
Added to WordPress repository:07-01-2020
Last updated:03-04-2024
Rating, %:98
Rated by:12
Plugin URI:https://connekthq.com/plugins/block-manager/
Total downloads:50 928
Active installs:3 000+
plugin download
Click to start download

The Block Manager is an intuitive tool for site admins to globally remove blocks and block patterns. It also provides functionality for updating the category of individual blocks to help organize the admin editing experience.

Features

  • Blocks: Globally disable blocks from being displayed in the Block Inserter and Block Editor.
  • Patterns: Remove unwanted block patterns with the click of a button.
  • Block Categories: Organize the Block Inserter by updating the category of each block.
  • Hooks: Use hooks to remove blocks and patterns from functions.php.
  • Search and Filter: Quickly locate blocks and patterns with the search functionality in the sidebar.
  • Embed Blocks: Choose the Embed blocks you actually want to include on your site by removing the vast majority of useless options.

Hooks & Filters

Use Block Manager hooks to controls blocks via code and sync options across multiple WordPress environments.

gbm_disabled_blocks

Use the gbm_disabled_blocks hook to remove blocks via backend code.

// functions.php
add_filter( 'gbm_disabled_blocks', function() {
    return [
        'core/buttons',
        'core/columns',
        'core/freeform',
        'core/table'
    ];
});

gbm_disabled_patterns

Use the gbm_disabled_patterns hook to remove block patterns via backend code.

// functions.php
add_filter( 'gbm_disabled_patterns', function() {
return ['gbm/core-patterns', 'core/query-standard-posts', 'core/query-medium-posts'];
});

gbm_block_categories

Use the gbm_block_categories hook to update block categories via backend code.

// functions.php
add_filter( 'gbm_block_categories', function() {
    return [
        [ 'block' => 'core/html', 'cat' => 'design' ],
        [ 'block' => 'core/cover', 'cat' => 'design' ],
        [ 'block' => 'core/details', 'cat' => 'design' ]
    ];
});

block_manager_user_role

Update the minimum user role allowed to access the Block Manager plugin.

// functions.php
add_filter(
    'block_manager_user_role',
    'edit_theme_options' // Default: activate_plugins
);

Screenshots
ChangeLog