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_pagesites_network_per_pagesite_themes_network_per_pagethemes_network_per_pageusers_network_per_pageedit_post_per_pageedit_page_per_pageedit_{$post_type}_per_pageedit_post_tag_per_pageedit_category_per_pageedit_{$taxonomy}_per_pagesite_users_network_per_pageusers_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:1266WP_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.0Changelog
Introduced in 2.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 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.