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/
Related Posts:
- Plugin function in child theme
- Nested Actions and Filters
- Use action, filter, or hook to append HTML to WordPress plugin function
- How to pass multiple custom fields as shortcode’s parameters
- Modify function output in a plugin
- Customize plugin’s output: filters or setters: looking for an advice
- Using Filters to modify contect – DB query results alwats appear fist
- CMB2 Output Select Box Chosen Option
- Override filter variable not working
- Add Cancel Button to a Custom Meta Box
- Remove action added in plugin class from theme
- Customize plugin templates
- Show custom taxonomy in theme
- Using multi-dimensional array with filter
- WordPress CPT Url metabox collection
- ACF Taxonomy search on backend (Relationship field)
- Help needed with woocommerce (wc stripe) filter
- What action or filter can I use to change all the html returned from server for a page?
- Add_Meta_box to custom page (formidable edit post)
- Can I add content before post content without using the_content filter
- why my wordpress dont have toolbar like, plugin, themes and other?
- WordPress Add advertising ads befor and after content with periority [closed]
- My own metabox checkbox plugin only saves the last value I’ve checked
- CMB2 Post Search Field displays/repeats initial post if left empty
- Why can’t I shove an instance of a class into a variable from a do_action hook?
- Edit plugin filter
- Do something with thumbnail image on post publish
- How can I remove this sidebar from my Search Results page?
- Add Filter to get_next_posts_link
- Add custom field for users
- Passing a parameter to filter and action functions
- Alter add_meta_box
- trying to create simple plugin to filter categories from all authors
- Jetpack Comments Change Placeholder Text
- shortcode which is introduced into entry the blog, and appears in side bar
- How do i get all author posts on custom post type list
- How to filter a a variable in a plugin’s function?
- Displaying image from a repeatable group
- How to add jquery to my custom post type wp plugin
- Retrive images from the_content()
- passing ‘&’ in return function of add_filter
- How to get rid of error message of custom metabox in dashboard when moving out of edit page?
- Filter the HTML content of plugin
- apply_filters to content but ignore shortcodes
- Use of apply_filter in plugin/widget class
- change output location of plugin function using a custom hook
- Metabox Data not saving
- Custom plugin breaks css.php on Multisite
- getpost content with all formatting for admin pages
- Filter for modifying image on upload
- making a glossary with wordpress
- Adding a Filter to Sidbar Login Plugin to Change Login Button Lable
- Strip shortcode from excerpt [duplicate]
- Advanced Custom Field User Help URL
- Which filters or actions involve with index page for plugin?
- Problem for recover and save metaboxes
- How to add different CSS for galleries
- How can i do custom author list?
- County Finder form/plugin?
- Simply Exclude – Category feed exclusion is excluding from category feed instead of just the main feed
- Add a filter to a different custom plugin
- How to change response of admin-ajax request?
- add query string to all pages after user logged in
- How to add a filter conditionally based on page related Conditional Tags
- Meta Box plugin image_advanced not showing up on frontend
- WP Members additional fields on user profile [closed]
- WordPress plugin add_filter returning a link does not work. What is the correct way?
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- How to change data format in custom meta box field [closed]
- iframe not showing on frontend when using a CMB2 field
- Which action/filter can i use for a Member Plugin [closed]
- Unable to pass arguments from plugin form to filter hook using ajax, the data is transferring via ajax but unable to pass as arguments in filter hooks
- How to Add Extra Text In WordPress Title Before Post Publish
- How often should I execute add_filter and function declaration in Code Snippets?
- How to add product thumbnail on orders list on backend?
- Problems with file_exists() with metabox plugin in WordPress
- Custom priority with the_content filter based on user input
- filter just a portion of plugin function
- WordPress REST API filter on blank custom ACF
- Meta box not displaying on the plugin page
- add_meta_box showing blank screen in my page
- Selectively override Easy Digital Downloads protection via filter
- Brands Filter Not Working For On Sale Products
- Deactivated a plugin with a filter, but it still enqueues JS files
- FacetWP custom display based on post type [closed]
- Change social icon in twenty twenty three theme
- Removing filters with arguments set in a class
- is_singular() in mu-plugins not working
- Remove wpseo filter from polylang plugin
- WooCommerce Attribute Mapping
- How can we extent core/group or cover block?
- Hide attributes based on previous selection
- Customize WP Filter Hook
- coauthors_plus_edit_authors to display metabox based on author caps
- wp_head filter not executed inside custom class
- What is the best way to ignore wordpress administration using add_filter($title) also when Ajax request
- remove filter added by plugin with anonymous function
- How to display title, description etc in block images?
- Possible to overwrite load_template function in plugin using functions.php
- How to customize WP_Error (REST JWT authentication plugin) [closed]