On this page
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_pageint-
Number of media to list. Default 20.
Source
File: wp-admin/includes/post.php. View all references
$q['posts_per_page'] = apply_filters( 'upload_per_page', $media_per_page );
Related
Used By
| Used By | Description |
|---|---|
| wp_edit_attachments_query_vars() wp-admin/includes/post.php | Returns the query variables for the current attachments request. |
Changelog
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/upload_per_page