disable qTranslate when logged in (wordpress)

I want to disable a plugin “qTranslate” when logged in.

I know that I can do that with this function :” if ( is_user_logged_in() ) { … } “, but I have no idea where should I use this..any help?

Read More

Thanks

Related posts

Leave a Reply

1 comment

  1. Tell me if you got luck with the following:

    function qtrans_disable()
      {
       global $typenow, $pagenow;
    
     if (in_array($typenow, array('post')) &&
        in_array($pagenow, array('post-new.php', 'post.php'))) 
      {
        remove_action('admin_head',   'qtrans_adminHeader'     );
        remove_filter('admin_footer', 'qtrans_modifyExcerpt'   );
        remove_filter('the_editor',   'qtrans_modifyRichEditor');
      }
     }
    if ( is_user_logged_in() ) 
     {
     add_action('current_screen', 'qtrans_disable');
     }