wppaste
WordPress

apply_filters( "{$option}", int $per_page )

Since
2.9.0
Filters the number of items to be displayed on each page of the list table.

Description

The dynamic hook name, $option, refers to the per_page option depending on the type of list table in use. Possible filter names include:

  • edit_comments_per_page
  • sites_network_per_page
  • site_themes_network_per_page
  • themes_network_per_page
  • users_network_per_page
  • edit_post_per_page
  • edit_page_per_page
  • edit_{$post_type}_per_page
  • edit_post_tag_per_page
  • edit_category_per_page
  • edit_{$taxonomy}_per_page
  • site_users_network_per_page
  • users_per_page

Compatibility

WordPress
since 2.9.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$per_pageint
Number of items to be displayed. Default 20.

Where this hook fires · 2

  • wp-admin/includes/class-wp-list-table.php:1013WP_List_Table::get_items_per_page()
  • wp-admin/includes/class-wp-screen.php:1264WP_Screen::render_per_page_options()

Source code

		 *  - `users_per_page`		 *		 * @since 2.9.0		 *		 * @param int $per_page Number of items to be displayed. Default 20.		 */		return (int) apply_filters( "{$option}", $per_page );	} 	/**	 * Displays the pagination.	 *	 * @since 3.1.0

Changelog

Introduced in 2.9.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.