The edit_categories_per_page WordPress PHP filter allows you to modify the number of categories displayed per page in the Categories list table.
Usage
add_filter('edit_categories_per_page', 'custom_categories_per_page'); function custom_categories_per_page($tags_per_page) { // Your custom code here return $tags_per_page; }
Parameters
$tags_per_page
(int): Number of categories to be displayed. Default is 20.
More information
See WordPress Developer Resources: edit_categories_per_page
Examples
Display 30 Categories per Page
To display 30 categories per page in the Categories list table:
add_filter('edit_categories_per_page', 'display_thirty_categories'); function display_thirty_categories($tags_per_page) { $tags_per_page = 30; return $tags_per_page; }
Display 50 Categories per Page
To display 50 categories per page in the Categories list table:
add_filter('edit_categories_per_page', 'display_fifty_categories'); function display_fifty_categories($tags_per_page) { $tags_per_page = 50; return $tags_per_page; }
Display 10 Categories per Page
To display 10 categories per page in the Categories list table:
add_filter('edit_categories_per_page', 'display_ten_categories'); function display_ten_categories($tags_per_page) { $tags_per_page = 10; return $tags_per_page; }
Display All Categories on One Page
To display all categories on one page in the Categories list table:
add_filter('edit_categories_per_page', 'display_all_categories'); function display_all_categories($tags_per_page) { $tags_per_page = -1; return $tags_per_page; }
Display a Custom Number of Categories per Page
To display a custom number of categories per page in the Categories list table:
add_filter('edit_categories_per_page', 'display_custom_categories_number'); function display_custom_categories_number($tags_per_page) { $custom_number = 15; // Change this value to your desired number $tags_per_page = $custom_number; return $tags_per_page; }