How I can echo some content based on current tab in my theme options. My tabbed theme option page has these tabs TAB1, TAB2, TAB3
I want to display a message on TAB2. The theme options page slug is /wp-admin/admin.php?page=options&tab=tab_1
I tried with
function show_message(){
if( isset( $_GET['tab'] ) ? $_GET['tab'] : 'tab_2' ){
echo 'This message';
else{
echo 'That Message';
}
}
add_action('admin_head','show_message');