Skip to content

atmosphere_backfill_query_chunk_size

github-actions[bot] edited this page Jun 8, 2026 · 1 revision

Filters the page size for the paged unsynced-posts walk.

Operators can lower the value on memory-constrained installs or pathological catalogues with very wide meta rows, or raise it to trade memory for fewer queries on healthy hosts. The filter also gives the test suite a knob for driving the paged loop with small fixtures.

Auto-generated Example

/**
 * Filters the page size for the paged unsynced-posts walk.
 * 
 * Operators can lower the value on memory-constrained installs
 * or pathological catalogues with very wide meta rows, or raise
 * it to trade memory for fewer queries on healthy hosts. The
 * filter also gives the test suite a knob for driving the paged
 * loop with small fixtures.
 *
 * @param int $chunk_size 
 * @return int The filtered value.
 */
function my_atmosphere_backfill_query_chunk_size_callback( int $chunk_size ) {
    // Your code here.
    return $chunk_size;
}
add_filter( 'atmosphere_backfill_query_chunk_size', 'my_atmosphere_backfill_query_chunk_size_callback' );

Parameters

  • int $chunk_size Posts per page. Default 500.

Files

\apply_filters(
			'atmosphere_backfill_query_chunk_size',
			self::DEFAULT_QUERY_CHUNK_SIZE
		)

← All Hooks

Clone this wiki locally