{$option} WordPress Filter Hook

The {$option} hook allows you to modify the behavior of the WordPress core options API. This hook is triggered when an option is read or updated.

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

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

Top ↑

Parameters

$per_page

(int)Number of items to be displayed. Default 20.


Top ↑

Source

File: wp-admin/includes/class-wp-list-table.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.