• Resolved Space

    (@bkno)


    Hi, on most sites of mine we are using the featured image so the metabox for the custom image is not required.

    Is there a PHP snippet to ensure the metabox on the post edit screen is hidden for all users? It is primarily to keep things simple for clients who don’t need this feature.

    I already tried disabling “Open Graph Image” custom field on the post” in settings but the metabox still shows.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @bkno,

    Thanks for reaching us,

    Hope you are doing well, We’ve informed our technical team about your issue, and they will work on it promptly. When we receive their response, we will get back to you. Our team is here to assist you. Thank you for your patience.

    Thanks & Regards
    WP Experts Support Team

    Plugin Support Mirza Hamza

    (@hamza1010)

    Hello @bkno,

    For hiding Open Graph Image, please use this PHP code in your theme’s functions.php file.

    Here is the code:

    add_filter( 'fb_ogtags_featured_image', '__return_false' );

    If you have any questions, feel free to reach out. We’re here to assist you.

    Thank you

    Thread Starter Space

    (@bkno)

    Many thanks Mirza. That’s perfect.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Way to disable the metabox for all users?’ is closed to new replies.