setGeneralTab(); } protected function setGeneralTab() { $this->page_tabs[] = [ 'id' => 'general', 'title' => 'General', 'slug' => 'general', 'sections' => [ [ 'id' => 'settings', 'title' => 'Settings', 'callback' => '__return_false', 'fields' => [ [ 'id' => 'status', 'title' => 'Status', 'callback' => 'radio', 'args' => [ 'field_options' => [ 'disabled' => 'Disabled', 'enabled' => 'Enabled', ], 'desc' => 'Caution: When status is Enabled this site will only be accessible to logged-in users, or visitors who have used the Private Access Link.', ] ], [ 'id' => 'access_code', 'title' => 'Access Code', 'callback' => 'text', 'args' => [ 'class' => 'regular-text', 'mask' => false, 'readonly' => true, 'desc' => 'Enter the desired Access Code. Allowed characters are A-Z and 0-9, the length should be between 3-12 characters. E.g. enter123.', ] ], [ 'id' => 'private_access_link', 'title' => 'Private Access Link', 'callback' => \ExpandOps\AccessCodeLite\Fields\PrivateAccessLinkField::class, 'args' => [] ], [ 'id' => 'access_persistence', 'title' => 'Access Persistence', 'callback' => 'select', 'args' => [ 'field_options' => [ 'session' => 'Session (default)', ], 'desc' => 'How the access code is remembered across page loads:

- Session (default) - stored in the user\'s session until the browser is closed.', ] ], ], ], ], ]; } }