MCPcopy Create free account
hub / github.com/WPUserManager/wp-optionskit / get_active_tab

Method get_active_tab

wp-optionskit.php:333–337  ·  view source on GitHub ↗

* Retrieve the currently active tab. * * @return string */

()

Source from the content-addressed store, hash-verified

331 * @return string
332 */
333 private function get_active_tab() {
334
335 return isset( $_GET['tab'] ) && array_key_exists( $_GET['tab'], $this->get_settings_tabs() ) ? $_GET['tab'] : $this->get_default_tab();
336
337 }
338
339 /**
340 * Retrieve the settings tabs.

Callers

nothing calls this directly

Calls 2

get_settings_tabsMethod · 0.95
get_default_tabMethod · 0.95

Tested by

no test coverage detected