Plugin_Importers
Plugin_Importers class.
Registers the importer admin page and handles AJAX batch import requests for BasePress, BetterDocs, and Echo Knowledge Base.
Namespace: WebberZone\Knowledge_Base\Admin
Since: 3.2.0
Source: includes/admin/class-plugin-importers.php line 29
Methods
__construct()
Constructor.
Since: 3.2.0
Line: 57
public function __construct( );
admin_menu()
Register the hidden admin sub-menu page.
Since: 3.2.0
Line: 90
public function admin_menu( ): void;
Returns: void
enqueue_scripts()
Enqueue scripts on the importer page only.
Since: 3.2.0
Line: 109
public function enqueue_scripts( string $hook ): void;
| Type | Name | Description |
|---|---|---|
string | $hook | Current admin page hook. |
Returns: void
render_page()
Render the importer page. Shows source selector or a specific importer screen.
Since: 3.2.0
Line: 154
public function render_page( ): void;
Returns: void
ajax_preview()
AJAX handler: return preview data for a source plugin.
Since: 3.2.0
Line: 396
public function ajax_preview( ): void;
Returns: void
ajax_batch()
AJAX handler: run one import batch (phase=terms or phase=posts).
Since: 3.2.0
Line: 420
public function ajax_batch( ): void;
Returns: void