WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. DK999k
    Member
    Posted 1 year ago #

    Hi,

    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.

    Thanks.

    http://wordpress.org/extend/plugins/facebook-awd/

  2. AHWEBDEV
    Member
    Plugin Author

    Posted 1 year 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.

    <?php
    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

About this Topic

Tags

No tags yet.