Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # How to Get the WordPress Screen ID of a Page
- # Author: https://shibashake.com/wordpress-theme/how-to-get-the-wordpress-screen-id-of-a-page
- // 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement