Skip to content

Instantly share code, notes, and snippets.

@yaquawa
Last active August 5, 2016 03:27
Show Gist options
  • Save yaquawa/e1be788734dda773258922cbf631b42b to your computer and use it in GitHub Desktop.
Save yaquawa/e1be788734dda773258922cbf631b42b to your computer and use it in GitHub Desktop.
Change the number of posts per page in the admin panel
$post_type = 'your-post-type';
add_filter("edit_{$post_type}_per_page", function ($posts_per_page) {
return 999;
});
// Search `edit_{$post_type}_per_page` in `wp-admin/includes/post.php` for more infomation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment