webberzone.dev Recent

Export_Wizard class Pro only

Export_Wizard

Export_Wizard class.

Namespace: WebberZone\Knowledge_Base\Pro\GitHub
Since: 3.1.0
Source: includes/github/class-export-wizard.php line 24

Methods

__construct()

Constructor.

Since: 3.1.0
Line: 31

public function __construct(  );

enqueue_scripts()

Enqueue scripts for the export wizard. Called by GitHub_Page when the Export tab is active.

Since: 3.1.0
Line: 56

public function enqueue_scripts(  ): void;

Returns: void

render_content()

Render the export tab content. Called by GitHub_Page.

Since: 3.1.0
Line: 94

public function render_content(  ): void;

Returns: void

ajax_list_articles()

AJAX handler: return only the articles that need pushing for a mapping.

Compares each post’s modified time against _wzkb_github_last_sync. Articles modified after the last sync (or never synced) are included in the task list.

Since: 3.1.0
Line: 188

public function ajax_list_articles(  ): void;

Returns: void

ajax_commit_all()

AJAX handler: generate Markdown for all linked articles in a mapping, skip files whose computed blob SHA matches the stored _wzkb_github_sha post meta, and push the remaining changes as a single commit using the Git Data API.

Creating one commit per bulk export — instead of one per file — keeps the repository history clean and avoids spamming the commit log.

Since: 3.1.0
Line: 254

public function ajax_commit_all(  ): void;

Returns: void