You can use
add_filter('edit_comments_per_page', 'return_999');
function return_999(){
return 999;
}
since the user options are filtered in the WP_List_Table::get_items_per_page()
class method :
/**
* Get number of items to display on a single page
*
* @since 3.1.0
* @access protected
*
* @return int
*/
function get_items_per_page( $option, $default = 20 ) {
$per_page = (int) get_user_option( $option );
if ( empty( $per_page ) || $per_page < 1 )
$per_page = $default;
return (int) apply_filters( $option, $per_page );
}
So you could do the same for edit_post_per_page
and edit_page_per_page
.
Or if you have other custom post types: edit_{CPT}_per_page
.
Related Posts:
- Comments to only be seen by their author
- Adding fields to the “Add New User” screen in the dashboard
- How to export comments in WordPress?
- Displaying the number of updates available in the Admin area
- What’s the difference between admin_url() and get_admin_url() functions?
- How to influence the information displayed on widget inside wp-admin
- How to override admin-bar style
- Remove Comments Metabox but still allow comments
- TinyMCE custom styles remove class when switching styles
- How do I create a new WP admin color scheme?
- AJAX handler throws 400 (Bad request) – why?
- How can I remove the title “leave a reply” in the comment box in twentyeleven?
- wp-admin page is blank
- change the comment time output to: X time ago instead of actual date and time
- How to get comments with mixed status using get_comments?
- How to prevent deleting of comments when deleting a post
- Replacing select2 in admin backend for all selects
- difference between add_object_page and add_menu_page
- How to fix a theme with page.php Default Template that accidentally deleted?
- disable comments if array exists
- Target a certain page within wordpress backend (admin) i.e. Pages > About
- Remove “says” from comments
- Display the number of user comments
- How can I rename the WordPress AJAX URL? [duplicate]
- How to add a column to the Trash page?
- How to change menu icon which is overriden (i.e. by WooCommerce) [closed]
- How to Add a Random Custom Gravatar in the WordPress Comments?
- Custom roles can’t access to wp-admin
- password protected post policy
- Removing the main link to Jetpack from the menu
- Function to prevent users from trashing comments
- Access / Filter block variations in Gutenberg, in WordPress 5.6
- How to remove howdy dropdown menu content
- Show top commenters without using a plugin
- Add Featured image column into wordpress admin on pages AND posts
- Selective Product Category for Carousel
- Change the HTML of the comment form that is generating somewhere from the core WordPress
- Commenter should see only his comments in wordpress
- How to force field validation first, then its values saved durning edit profile?
- Filter out other users comments. Visualize only own comments and editor role users’ comments
- Move ‘current-menu-item’ class on #adminmenu li from Posts to Pages for Taxonomy Edit Screen
- How to auto refresh when user change postcode
- wp-comment author- url +, email filter hook
- Sections and tabs DRY – WordPress settings API
- How to install Segment on WordPress without a plugin
- Get First Child Page ID or Permalink in WordPress Admin
- Creating A New Admin Menu Tab For Theme Options
- Where to add the permalink in this function?
- wp-admin won’t load after setting wp-login custom url
- Incorrect redirect after commenting
- comments_popup_link without echo?
- Getting comment count per post not working
- What is the Difference in bones_comments() and comments.php
- Remove “Published On” inside wp-admin
- Where do i create my own function in wp-admin
- How to remove comment count column in Posts inside the admin dashboard?
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- Sortable column (by numbers) in admin users
- error at login page in wordpress
- Update to functions.php not showing in dashboard
- Add element to widgetpage
- Best way to disable sidebars on posts (only)?
- “options.php” not found
- Function to replace comment’s accented characters before posting
- How to change a specific admin label
- WordPress comment_form() does not display actual comments
- How to change a meta value (of a published post) after X days.?
- WordPress comment processing . Default unapproved comments detection before posting
- Block all plug-ins from initiating redirection upon activation?
- How do I change where “You must be logged in to comment” directs users?
- How to add custom metakey to shop_order page’s searching function?
- How do I make the comment disappear after deleting from the database?
- Unable to login after registration
- Remove nofollow from internal comment links via functions.php
- How can I automatically delete comments that contain a URL?
- Warning and fatal error
- Insert Modal on user first login
- WP Enqueue Script Error
- DISABLE wordpress upgrade page
- Comment function for page
- How to identify author in wordpress comments?
- admin-ajax.php & my wp-admin folder url showing in header
- How can I return the result of my custom function?
- Newest comments first not working
- get_comments not working properly after WordPress v4.4 update
- What is wrong with functions.php? Fills error log with same error
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Getting error while trying to use custom comment function
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Custom Nested WordPress Comments with avatar
- Undo a function that is not (seemingly) hooked to an action?
- Comment Function
- WP Custom Comment Callback Not Responding
- How to remove “login to reply” from individual comments [duplicate]
- Getting full code of wp_list_comments instead of replacing it
- Changed functions.php file and now site is blank [closed]
- Comment turned Invisible
- User’s Comments Number: Storing it in a meta field for different uses
- Add functionality to block comment authors in the Comment edit pag
- Setcookie not setting cookies anywhere except admin