Import_Export
Handles settings export (JSON download) and import (JSON upload).
Namespace: WebberZone\Knowledge_Base\Admin
Since: 3.1.0
Source: includes/admin/class-import-export.php line 22
Methods
__construct()
Constructor.
Since: 3.1.0
Line: 29
public function __construct( );
process_export()
Stream the settings as a JSON file download.
Sensitive fields are stripped before output so that encrypted values (GitHub PATs, webhook secrets) are never written to the export file.
Since: 3.1.0
Line: 45
public function process_export( ): void;
Returns: void
process_import()
Handle an uploaded JSON settings file and merge it into the saved settings.
Sensitive keys already saved on this site are preserved — they are never overwritten by the import since the export file does not contain them.
Since: 3.1.0
Line: 87
public function process_import( ): void;
Returns: void
render_card()
Render the Settings Import / Export card on the Tools page.
Since: 3.1.0
Line: 211
public function render_card( ): void;
Returns: void