upload_per_page WordPress Filter Hook

The upload_per_page Wordpress hook allows you to specify how many uploads to show on each page in the WordPress media library. This can be useful if you have a lot of media files and want to avoid pagination.

apply_filters( 'upload_per_page', int $media_per_page ) #

Filters the number of items to list per page when listing media items.


Parameters

$media_per_page

(int)Number of media to list. Default 20.


Top ↑

Source

File: wp-admin/includes/post.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.

Show More