WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 21 months ago

#44992 new enhancement

Filter for screen option 'Number of items per page' value

Reported by: abhijitrakas Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

Under 'Screen Options' we have 'Number of items per page' option to set post per page value.

I found that we don't have any filter to change the default max limit of 'Number of items per page'. I think it will be helpful if we have such filter.

Scenario which is cover by filter:

Suppose the admin of a WooCommerce site who gave access of site to other user to process orders. The user who has access to the site increases the default 'Number of items per page' value, lets say 500. Because of this number of orders fetched, will be more.

Suppose the database is huge, this process will take time and the site gives slow response to all users.

In this case suppose if the admin wants to change the default max limit to 100 then this filter will be useful.

Attachments (2)

screen-option-post-per-page.png (25.8 KB) - added by abhijitrakas 2 years ago.
44992.patch (2.3 KB) - added by abhijitrakas 2 years ago.

Download all attachments as: .zip

Change History (4)

@abhijitrakas
2 years ago

#1 @abhijitrakas
2 years ago

  • Type changed from defect (bug) to enhancement

#2 @steveo2000
21 months ago

Agree, we get this a lot, we have users setting this to 9999 and wondering why the page doesn't load.

Note: See TracTickets for help on using tickets.