Last active
August 5, 2016 03:27
-
-
Save yaquawa/e1be788734dda773258922cbf631b42b to your computer and use it in GitHub Desktop.
Change the number of posts per page in the admin panel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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