apply_filters( “{$option}”, int $per_page )

In this article

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

Parameters

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

Source

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

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

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