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.
Source
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |