wpseek.com
A WordPress-centric search engine for devs and theme authors



upload_per_page › WordPress Filter Hooks

Since2.9.0
Deprecatedn/a
apply_filters( 'upload_per_page', $media_per_page )
Parameters:
  • (int) $media_per_page Number of media to list. Default 20.
    Required: Yes
Defined at:
Codex:

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





Source

$q['posts_per_page'] = apply_filters( 'upload_per_page', $media_per_page );