• Resolved davedecc

    (@davedecc)


    Hello, is there a way to disable the metabox at the bottom of the block editor in the post/page editor?

    Thanks for any insight.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Muhammad Usama Azad

    (@usamaazad99)

    Hi @davedecc ,

    I hope you are doing well,

    Thank you for reaching out to WP Experts Support. I am glad to assist you.

    We have prepared a custom code snippet for you. Please add this code to your active theme’s functions.php file to disable the metabox in the block editor.

    Code.

    add_action(
    'add_meta_boxes',
    function ( $post_type ) {
    $denied_post_types = array(
    // your post types here
    'custom_post_type_1',
    );
    if ( ! in_array( $post_type, $denied_post_types, true ) ) {
    return;
    }
    remove_meta_box( 'webdados_fb_open_graph', $post_type, 'advanced' );
    },
    15
    );

    After applying the code, kindly check the result and share your feedback.

    We look forward to hearing from you.

    Thanks & Regards,
    WP Experts Support Team

    Plugin Support fahadwaheed

    (@fahadwaheed)

    Hi @davedecc,

    I hope you’re doing well.

    I’m just following up to check whether you’ve had a chance to apply the custom code snippet we shared earlier. Kindly let us know if it worked as expected or if you need any further assistance.

    We look forward to your feedback and will be happy to help if you have any questions.

    Have a great day ahead.

    Best regards,
    WP Experts Support Team

    Thread Starter davedecc

    (@davedecc)

    Thanks so much for the snippet and following up. I will be attempting to implement this soon as I’m just getting back from the holiday break.

    Plugin Support fahadwaheed

    (@fahadwaheed)

    Hi @davedecc,

    I hope you had a great holiday break.

    You’re very welcome, and thank you for the update. Please take your time implementing the snippet, and feel free to reach out if you have any questions or need assistance.

    Looking forward to hearing from you.

    Best regards,
    WP Experts Support Team

    Thread Starter davedecc

    (@davedecc)

    Reporting back to say this worked perfectly, thanks so much!

    Plugin Support fahadwaheed

    (@fahadwaheed)

    Hi @davedecc

    Thank you for your kind feedback! We’re delighted it’s working perfectly. If you are satisfied with our service, please consider giving us a 5-star rating on ww.wp.xz.cn. It means a lot to us.

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.