The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Facebook AWD All in one
[resolved] Removing AWD options from new/edit post page (2 posts)

  1. DK999k
    Posted 4 years ago #


    Is there an option to remove the Facebook AWD options from the new/edit post page? - I will never use them and they're taking up alot of space since I customized my login button to make it larger.

    As a temporary solution, I would be OK with going into the plugin files and removing the hooks if necessary. If you could tell me where the calls are that would be great.

    The two boxes i'd like to remove are: 'Facebook AWD Manager' and 'Open Graph Metas'.

    Any help would be much appreciated.



    Plugin Author

    Posted 4 years ago #

    Of course you can, You just have to remove the action that add this metabox.

    Let me show you:

    you can remove the metaboxes using the default function from WP.

    function remove_facebook_awd_metaboxes(){
    	global $AWD_facebook;
    	$post_types = get_post_types();
    	foreach($post_types as $type){
    		if($AWD_facebook->options['open_graph_enable'] == 1){
    			remove_meta_box($AWD_facebook->plugin_slug."_open_graph_post_metas_form", $type , 'normal');
    		//Like button manager on post page type
    		remove_meta_box($AWD_facebook->plugin_slug."_awd_mini_form_metabox", $type , 'side');
    add_action('admin_menu', 'remove_facebook_awd_metaboxes', 1000);

    Add that in your functions.php.

    This should remove the opengraph form oon all post types, and will remove the manager too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook AWD All in one
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.