The function get_available_post_statuses() is being called by WP_Posts_List_Table->prepare_items(), which is calculating posts on each load of admin.

Since this is a core wordpress function and I do not want to modify wordpress core files is there any way to speed up this function? I do not need individual post counts against all statuses as seen below:

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.