[wp-trac] [WordPress Trac] #47555: Add per_page filter to nav-menu.php

WordPress Trac noreply at wordpress.org
Tue Jun 18 12:55:54 UTC 2019


#47555: Add per_page filter to nav-menu.php
----------------------------+-----------------------------
 Reporter:  Martin Snajdr   |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  5.2.1
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Right now there is a hardcoded number of posts / terms (50) displayed per
 page in wp-admin/includes/nav-menu.php, which might be ok for posts, but
 it's a nightmare when having a lot of terms (hierarchical). For example in
 WooCommerce, I have like 200 categories and some of those are having the
 same name (but different parent). When I go through the list of those
 categories, it's quite hard to find exactly the one I'm looking for if the
 parent is on previous page.

 Having pagination as default is ok, but there should be a simple filter
 that will allow plugins / themes to change the per_page variable value (at
 least in wp_nav_menu_item_taxonomy_meta_box), so you could list more than
 50 terms per page.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47555>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list