Skip to content

Adds a dashboard that select list of active Gutenberg blocks on a site and returns a list of pages, post and other post types where that block is being used.

Notifications You must be signed in to change notification settings

troychaplin/block-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f265236 · Dec 2, 2024

History

18 Commits
Jul 24, 2024
Jul 24, 2024
Dec 2, 2024
Sep 2, 2024
Aug 23, 2024
Jul 24, 2024
Aug 30, 2024
Dec 2, 2024
Jul 24, 2024
Jul 24, 2024
Sep 2, 2024
Jul 24, 2024
Jul 24, 2024
Aug 4, 2024
Dec 2, 2024
Aug 3, 2024
Dec 2, 2024
Dec 2, 2024
Dec 1, 2024
Dec 1, 2024
Dec 2, 2024
Dec 2, 2024
Jul 24, 2024

Repository files navigation

Block Finder

Adds a dashboard that select list of active Gutenberg blocks on a site and returns a list of pages, post and other post types where that block is being used.

Installation & Usage

  • Upload the plugin files to the /wp-content/plugins/
  • Activate the plugin through the Plugins screen in WordPress

Usage

  • Once activated head to the dashboard
  • Look for the "Block Finder" item
  • Select your post type and block
  • Click "Find Block"

Image 2

Image 2

Getting Involved

Open a terminal window and navigate to where you intend to setup the repo and do the following:

  • Install wp-env: npm -g i @wordpress/env
  • Clone the repo: git clone https://github.com/troychaplin/block-finder.git
  • Navigate into the repo: cd block-finder
  • Install dependencies: npm install

Start Developing

This repo uses @wordpress/env that setups up a local WordPress environment using Docker.

  • Make sure Docker Desktop is running
  • Start WordPress: wp-env start

Other Commands

  • Stop WordPress: wp-env stop
  • Start watch task: npm run start
  • Build assets: npm run build

Local Site Details

Important: when you're done working don't forget to stop the WordPress docker environment by running npm run wp:down

Report an Issue or Bug

TODO: add git issue templates

About

Adds a dashboard that select list of active Gutenberg blocks on a site and returns a list of pages, post and other post types where that block is being used.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published