webberzone.dev Recent

wzkb_github_export_batch_size filter Pro only

wzkb_github_export_batch_size

Fetch lightweight records for all KB posts linked to a given repo and folder.

Paginates in batches (filter: wzkb_github_export_batch_size) and returns only id + path per post — never an array of full WP_Post objects — so memory stays bounded even on sites with tens of thousands of linked articles. Callers fetch title/meta per id as needed.

Type: filter
Since: 3.1.0
Source: includes/github/class-export-wizard.php line 465

Parameters

TypeNameDescription
string$repo_full”owner/repo” string stored in _wzkb_github_repo.
string$folderFolder prefix with trailing slash, or ” for all.

Usage

add_filter( 'wzkb_github_export_batch_size', function($repo_full, $folder) {
    // ...
    return $repo_full;
} );