* Retrieve the default tab. * The default tab, will be the first available tab. * * @return string */
()
| 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. |
no test coverage detected