wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



edit_posts_per_page › Hooks de Filtros WordPress

Desde2.8.0
Obsoleton/a
apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type )
Parâmetros: (2)
  • (int) $posts_per_page Number of posts to be displayed. Default 20.
    Required: Yes
  • (string) $post_type The post type.
    Required: Yes
Definido em:
Codex:

Filters the number of posts displayed per page when specifically listing "posts".





Fonte

$posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type );