How to remove plugin metaboxes from edit.php
You can use the do_meta_boxes hook to remove the metaboxes instead. Like below add_action( ‘do_meta_boxes’, ‘vpm_remove_meta_box’ ); function vpm_remove_meta_box() { remove_meta_box( ‘ortext-metabox’, ‘post’, ‘normal’ ); remove_meta_box( ‘ez-toc’, ‘post’, ‘normal’ ); } See this for more info https://developer.wordpress.org/reference/functions/remove_meta_box/