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

Method get_default_tab

wp-optionskit.php:315–326  ·  view source on GitHub ↗

* Retrieve the default tab. * The default tab, will be the first available tab. * * @return string */

()

Source from the content-addressed store, hash-verified

313 * @return string
314 */
315 private function get_default_tab() {
316
317 $default = '';
318 $tabs = $this->get_settings_tabs();
319
320 if ( is_array( $tabs ) ) {
321 $default = key( $tabs );
322 }
323
324 return $default;
325
326 }
327
328 /**
329 * Retrieve the currently active tab.

Callers 1

get_active_tabMethod · 0.95

Calls 1

get_settings_tabsMethod · 0.95

Tested by

no test coverage detected