Site logo

Archived topic

How to see where reusable block is used

1 reply · Started by Robert on January 11, 2023

Viewing posts 1–2 of 2

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?

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.

This archived topic is closed to new replies.