I’m dealing with a settings page that has multiple tabs. On one tab I’m verifying some credentials that the user’s provided. I only want to test the credentials (using piklist_pre_update_option) when I’m on that specific tab. I’m familiar with get_current_screen, but I don’t think it provides an id that includes the tab=? parameter.
Nice! I ended up using an isset on the $new parameter to check if a specific field exists on the page, and return $settings if not, but that’s great to know!
Thanks Marcus!
Author
Posts
Viewing 2 reply threads
The topic ‘Determining the settings tab’ is closed to new replies.
This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to the use of cookies. Find out more.