Get the number of items per page used in paginated migration queries.

Return Return


Top ↑

Source Source

File: includes/functions/llms.functions.updates.php

function llms_update_util_get_items_per_page() {
	 * Filters the number of items per page in migration queries.
	 * This filter exists primarily to allow phpunit tests for migration
	 * functions and queries to reduce the number of items per query. In this
	 * way pagination functionality can be tested without having to tests
	 * a large number of items.
	 * @since 6.0.0
	 * @param int $per_page Number of items per page.
	return apply_filters( 'llms_update_items_per_page', 50 );

Top ↑

Changelog Changelog

Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.