Support

Account

Home › Forums › Add-ons › Options Page › When using 'save_post' action, how do you identify which options page? › Reply To: When using 'save_post' action, how do you identify which options page?

  • Here’s a quick one to get the current screen slug…

    function currentscreen_test(){
    	$screen = get_current_screen();
    	echo '<br><h1>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;' . $screen->id . '</h1>';
    }
    add_action('current_screen','currentscreen_test');