//custom function function create_shortcode_test() { echo the_excerpt(); } add_shortcode ( 'show_excerpt' , 'create_shortcode_test' ); Or…
How to detect certain admin pages in WordPress
//this will print the current screen data in the source code
add_action('current_screen', 'detecting_current_screen');
function detecting_current_screen() {
$current_screen = get_current_screen();
print_r($current_screen);
}

