Screen ID

Last Updated: August 16, 2021

If you are going to program with  WordPress admin side hooks then you have to know the screen id of each page inside the WordPress admin.

These are sample hooks you can work

  • manage_{$screen->id}_columns – Add or delete columns from various administrative pages.

You can apply Filters to the column headers for a list table on a specific screen

  • views_{$screen->id} – Display the number of objects belonging to each status type. (See below)
  • bulk_actions-{$screen->id} – As of WordPress 3.2 this filter can only be used to remove bulk actions.
  • manage_{$screen->id}_sortable_columns – Filter list of all, hidden and sortable columns.

How do you get Screen ID

You can use the get_current_screen() to get the Screen object.

or you can use the current_screen filter

// Add to the admin_init action hook
add_filter('current_screen', 'my_current_screen' );
 
function my_current_screen($screen) {
    if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) return $screen;
    print_r($screen);
    return $screen;
}

Common Screen ID