Echo_KB_Importer
Imports content from the Echo Knowledge Base plugin.
CPT: epkb_post_type_{id} (dynamic per KB instance) Taxonomies: epkb_post_type_{id}category → wzkb_category epkb_post_type{id}_tag → wzkb_tag Each KB instance → one wzkb_product term
Namespace: WebberZone\Knowledge_Base\Admin\Importers
Since: 3.2.0
Source: includes/admin/importers/class-echo-kb-importer.php line 25
Extends: Base_Importer
Methods
get_label()
{@inheritDoc}
Line: 65
public function get_label( ): string;
Returns: string
get_slug()
{@inheritDoc}
Line: 72
public function get_slug( ): string;
Returns: string
get_source_settings()
{@inheritDoc}
Reports settings for the first (or only) KB instance.
Line: 89
public function get_source_settings( ): array;
Returns: array
get_post_count()
{@inheritDoc}
Line: 115
public function get_post_count( ): int;
Returns: int
get_term_count()
{@inheritDoc}
Line: 122
public function get_term_count( ): int;
Returns: int
import_terms()
{@inheritDoc}
For each KB instance:
- Create one wzkb_product term
- Import categories as wzkb_category with product_id meta
- Import tags as wzkb_tag
Line: 148
public function import_terms( ): array;
Returns: array
import_posts_batch()
{@inheritDoc}
Loops all KB instances and processes posts across them in a single offset sequence.
Line: 194
public function import_posts_batch( int $offset, int $batch_size ): array;
| Type | Name | Description |
|---|---|---|
int | $offset | Pagination offset. |
int | $batch_size | Number of posts to process. |
Returns: array