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. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upload_per_page