page = $page; $this->plugin = $page->plugin; // $this->form_handler(); } public function get_id() { if ( empty( $this->id ) ) { throw new \Exception( 'Step ID setting is required for the {' . static::class . '} class!' ); } return $this->id; } public function get_next_id() { return $this->next_id; } /** * Requests assets (js and css) for the page. * * @return void * @since 1.0.0 * @see FactoryPages600_AdminPage */ public function assets( $scripts, $styles ) { // nothing } protected function continue_step( $skip = false ) { $next_id = $this->get_next_id(); if ( ! $next_id ) { $next_id = $this->get_id(); } wp_safe_redirect( $this->page->getActionUrl( $next_id ) ); die(); } protected function skip_step() { $this->continue_step( true ); } abstract public function get_title(); abstract public function html(); }