In the class WP_Posts_List_Table
there is a function named inline_edit()
and it is responsible for rendering the entire quick edit table that is used (but initially hidden) on wp-admin/edit.php
.
I want to prevent that table from being rendered because the site I’m working on has thousands of category terms and they all get added to this quick edit table as list items with checkboxes. It makes edit.php
huge and slow loading (and in certain cases with some jQuery plugins even make some browsers stall).
I have not found any way, with filters or actions in WP_Posts_List_Table
, to prevent this table from being rendered. Nor no way to make edit.php
not call $wp_list_table->inline_edit();
at the end. Is there some (proper) way to achieve my goal? Without hacking core, of course.
(I do know how to disable the quick edit link in the post rows with post_row_actions
filter but that huge table is still being rendered and sent with edit.php
.)
I was never able to find a filter either, but there is a check for whether the taxonomy is allowed to show it’s UI. So what I used to do in one of my plugins was to tweak the
$wp_taxonomies
global variable on the edit page.The quick-edit section needs a lot of love in a future update.
Had the same issue a while, i solved it by changing the term_list with a filter tho remove all checkboxes when i’m on the edit.php page. First, you can remove the link with this:
This will only remove the link, but the actual category selector is still in the source code…
(change the post-type-name to your post type)