Tribe__Settings_Tab::showSaveTab( array $noSaveTabs )
sets whether the current tab should show the save button or not
Contents
Parameters
- $noSaveTabs
-
(array) (Required) the $noSaveTabs from Tribe__Settings
Return
(array) $noSaveTabs the filtered non saving tabs
Source
File: src/Tribe/Settings_Tab.php
public function showSaveTab( $noSaveTabs ) {
if ( ! $this->show_save || empty( $this->fields ) ) {
$noSaveTabs[ $this->id ] = $this->id;
}
return $noSaveTabs;
}