Site logo

[Support request] How to see where reusable block is used

Home Forums Support [Support request] How to see where reusable block is used

Home Forums Support How to see where reusable block is used

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2491147
    Robert

    Is there a way to see a list of every place a reusable block is used? I made an image container as a reusable block that has top and bottom margin. I thought this would allow me to put post images inside this reusable container, but it turns out that every time I put in an image and save the post, the reusable block is updated with that image. I want to make sure the new image isn’t being used everywhere the reusable block was placed. But I can’t find a list anywhere.

    Also, is there a link somewhere to access the reusable block manager? I can open up the manager page after adding a reusable block to a post by clicking on the block settings menu, but there must be an easier way to access the manager page, right?

    #2491334
    David
    Staff
    Customer Support

    Hi there,

    to give the reusable blocks an admin menu you can use this PHP snippet:

    function be_reusable_blocks_admin_menu() {
        add_menu_page( 'Reusable Blocks', 'Reusable Blocks', 'edit_posts', 'edit.php?post_type=wp_block', '', 'dashicons-editor-table', 22 );
    }
    add_action( 'admin_menu', 'be_reusable_blocks_admin_menu' );

    For reference and kudos the code comes from here

    Finding every instance of that reusable block – you would have to search for it your database to find them.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.