Settings_Wizard
Settings Wizard class for Knowledge Base.
Namespace: WebberZone\Knowledge_Base\Admin
Since: 3.0.0
Source: includes/admin/class-settings-wizard.php line 29
Extends: Settings_Wizard_API
Methods
__construct()
Main constructor class.
Since: 3.0.0
Line: 44
public function __construct( );
get_wizard_steps()
Get wizard steps configuration.
Since: 3.0.0
Line: 102
public function get_wizard_steps( ): array;
Returns: array — Wizard steps.
get_translation_strings()
Get translation strings for the wizard.
Since: 3.0.0
Line: 219
public function get_translation_strings( ): array;
Returns: array — Translation strings.
trigger_wizard_on_activation()
Trigger wizard on plugin activation.
Since: 3.0.0
Line: 243
public function trigger_wizard_on_activation( );
register_wizard_notice()
Register the wizard notice with the Admin_Notices_API.
Since: 3.0.0
Line: 258
public function register_wizard_notice( );
enqueue_custom_scripts()
Enqueue custom scripts for the wizard.
Since: 3.0.0
Line: 311
public function enqueue_custom_scripts( $hook );
| Type | Name | Description |
|---|---|---|
string | $hook | Current admin page hook. |
render_wizard_page()
Override render_wizard_page to handle custom steps.
Since: 3.0.0
Line: 400
public function render_wizard_page( );
has_sample_content() static
Check whether any sample content exists in the database.
Since: 3.0.0
Line: 1179
static public function has_sample_content( ): bool;
Returns: bool
ajax_delete_sample_content()
Handle AJAX request to delete all sample content.
Since: 3.0.0
Line: 1203
public function ajax_delete_sample_content( );
render_sample_content_tools_card()
Render the sample content card on the Tools page.
Since: 3.0.0
Line: 1277
public function render_sample_content_tools_card( ): void;
Returns: void
ajax_import_sample_content()
Handle AJAX request to import sample content.
Since: 3.0.0
Line: 1304
public function ajax_import_sample_content( );
flush_permalinks()
Handle AJAX request to flush permalinks.
Since: 3.0.0
Line: 1321
public function flush_permalinks( );