اگر می خواین کسی جز مدیر سایت [ خودتون
] امکان استفاده از ویرایشگر HTML رو نداشته باشه ، کد زیر رو به فایل functions.php اضافه کنید :
add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );
add_action( 'admin_head', 'disable_html_editor_wps' );
function disable_html_editor_wps() {
global $current_user;
get_currentuserinfo();
if ($current_user->user_level != 10) {
echo '<style type="text/css">#editor-toolbar #edButtonHTML, #quicktags {display: none;}</style>';
}
}


