ログイン時にプラグイン「qTranslate」を無効にしたい。
私はこの関数でそれを行うことができることを知っています: " if ( is_user_logged_in() ) { ... } " しかし、どこでこれを使用すればよいかわかりません..何か助けはありますか?
ありがとう
ログイン時にプラグイン「qTranslate」を無効にしたい。
私はこの関数でそれを行うことができることを知っています: " if ( is_user_logged_in() ) { ... } " しかし、どこでこれを使用すればよいかわかりません..何か助けはありますか?
ありがとう
次の運が良かったら教えてください。
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');
}