Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



edit_{$post_type}_per_page ›

Seit3.0.0
Veraltetn/v
apply_filters( "edit_{$post_type}_per_page", $posts_per_page )
Parameter:
  • (int) $posts_per_page Number of posts to display per page for the given post type. Default 20.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the number of items per page to show for a specific 'per_page' type.

The dynamic portion of the hook name, $post_type, refers to the post type.

Some examples of filter hooks generated here include: 'edit_attachment_per_page', 'edit_post_per_page', 'edit_page_per_page', etc.





Quellcode

$posts_per_page = apply_filters( "edit_{$post_type}_per_page", $posts_per_page );