private function detectSubTab(){ $tab = $this->detectTab(); return isset( $this->tabs[$tab] ) ? $this->tabs[$tab]->detectSubTab() : ''; } public function save(){ $tabName = $this->detectTab(); if ( isset( $this->tabs[$tabName] ) && !empty( $_POST ) && current_user_can( 'manage_options' ) ) { $this->tabs[$tabName]->save(); } // Update iCalendar autosynchronization cron $autoSyncEnable = (bool) get_option( 'mphb_ical_auto_sync_enable', false ); $autoSyncClock = get_option( 'mphb_ical_auto_sync_clock', false ); $autoSyncInterval = get_option( 'mphb_ical_auto_sync_interval', false ); MPHB()->cronManager()->rescheduleAutoSynchronization( $autoSyncEnable, $autoSyncClock, $autoSyncInterval ); } public function registerSettings(){ foreach ( $this->tabs as $tab ) { $tab->register(); } } /** * * @param array $atts * @param string $atts['tab'] Name of tab to check * @param string $atts['subtab'] Name of subtab to check * @return boolean */ public function isCurrentPage( $atts = array() ){ $isCurrentPage = parent::isCurrentPage( $atts ); if ( !$isCurrentPage ) { return false; } if ( !empty( $atts['tab'] ) && ( $this->detectTab() !== $atts['tab'] ) ) { return false; } if ( !empty( $atts['subtab'] ) && ( $this->detectSubTab() !== $atts['subtab'] ) ) { return false; } return true; } protected function getMenuTitle(){ return __( 'Settings', 'motopress-hotel-booking' ); } protected function getPageTitle(){ return __( 'Settings', 'motopress-hotel-booking' ); } /** * Retrieve Url of Motopress Hotel Booking Settings Page * * @param array $additionalArgs * @param string $additionalArgs['tab'] Tab Name. * @param string $additionalArgs['subtab'] Sub Tab Name. * */ public function getUrl( $additionalArgs = array() ){ return parent::getUrl( $additionalArgs ); } }
Fatal error: Uncaught Error: Class 'MPHB\Admin\MenuPages\SettingsMenuPage' not found in /homepages/6/d786712796/htdocs/campingtamariu/wp-content/plugins/motopress-hotel-booking/plugin.php:454 Stack trace: #0 /homepages/6/d786712796/htdocs/campingtamariu/wp-content/plugins/motopress-hotel-booking/plugin.php(360): HotelBookingPlugin->createPages() #1 /homepages/6/d786712796/htdocs/campingtamariu/wp-content/plugins/motopress-hotel-booking/plugin.php(308): HotelBookingPlugin->afterConstruct() #2 /homepages/6/d786712796/htdocs/campingtamariu/wp-content/plugins/motopress-hotel-booking/plugin.php(1286): HotelBookingPlugin::getInstance() #3 /homepages/6/d786712796/htdocs/campingtamariu/wp-content/plugins/motopress-hotel-booking/motopress-hotel-booking.php(18): require('/homepages/6/d7...') #4 /homepages/6/d786712796/htdocs/campingtamariu/wp-settings.php(381): include_once('/homepages/6/d7...') #5 /homepages/6/d786712796/htdocs/campingtamariu/wp-config.php(111): require_once('/homepages/6/d7...') #6 /homepages/6/d786712796/htdocs/ in /homepages/6/d786712796/htdocs/campingtamariu/wp-content/plugins/motopress-hotel-booking/plugin.php on line 454

Warning: Cannot modify header information - headers already sent by (output started at /homepages/6/d786712796/htdocs/campingtamariu/wp-content/plugins/motopress-hotel-booking/includes/admin/menu-pages/settings-menu-page.php:1) in /homepages/6/d786712796/htdocs/campingtamariu/wp-content/plugins/motopress-hotel-booking/includes/libraries/wp-session-manager/class-wp-session.php on line 127