Days
Hours
Minutes
Seconds

Our Biggest Sale of the Year - Get up to 25% OFF!

Remove Theme Metaboxes

Page Builder Framework adds up to 3 metaboxes to each create & edit post screen.

In this post we are showing you how to remove those metaboxes.

function prefix_remove_pbf_metaboxes() {
    remove_meta_box( 'wpbf' , 'post' , 'side' );
    remove_meta_box( 'wpbf_header' , 'post' , 'side' );
    remove_meta_box( 'wpbf_sidebar' , 'post' , 'side' );

    // remove_meta_box( 'wpbf' , 'your_cpt' , 'side' );
    // remove_meta_box( 'wpbf_header' , 'your_cpt' , 'side' );
    // remove_meta_box( 'wpbf_sidebar' , 'your_cpt' , 'side' );
}
add_action( 'admin_head' , 'prefix_remove_pbf_metaboxes' );

The code example above will remove the metaboxes from all posts. You can repeat that process for all other post types available on your website.

The code should be placed in the child themes functions.php file.

Last updated on: September 25th, 2020

Scroll to Top

Download

Download Page Builder Framework and be the first to get informed about new features & updates!

OR

Get 10% off our Premium Add-On (yearly plan).
Coupon Code to enter during checkout: 10OFF View Pricing