Getting the ID of a meta box

Here’s what I would do in order to get the ID of the metabox,

  1. In the Dashboard where the meta boxed are located, open up the Screen Options tab on the upper right corner
  2. Open up your browser’s developer tool (ex: Chrome)
  3. Use the element selector () and select the checkbox label that is listed in the Screen Options, like so:

  1. The element will be selected and you should see something similar:

  1. For each <label for= tag, you will find the ID’s of each meta box, for example:
    • dashboard_right_now
    • dashboard_activity
    • dashboard_quick_press
    • dashboard_primary
    • wp_welcome_panel

From there, you can continue with the code that you found in a previous question with the ID that you need.

Leave a Comment