edit_posts_per_page, $posts_per_page, $post_type

edit_posts_per_page, $posts_per_page, $post_type

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: 7.0.3

apply_filters('edit_posts_per_page, $posts_per_page, $post_type') is found 1 times:

  • /wp-admin/includes/post.php line 1298
    	 *
    	 * @param int    $posts_per_page Number of posts to be displayed. Default 20.
    	 * @param string $post_type      The post type.
    	 */
    	$posts_per_page = apply_filters( 'edit_posts_per_page', $posts_per_page, $post_type );
    
    	$query = compact( 'post_type', 'post_status', 'perm', 'order', 'orderby', 'posts_per_page' );
    
    	// Hierarchical types require special args.
    	if ( is_post_type_hierarchical( $post_type ) && empty( $orderby ) ) {
    		$query['orderby']                = 'menu_order title';