回答:
add_action('init', 'init_remove_support',100);
function init_remove_support(){
    $post_type = 'your post type';
    remove_post_type_support( $post_type, 'editor');
}テーマのfunctions.phpに配置します
supportsUIでパラメーターを公開します。これらのスクリーンショットを参照してください。
                    実際には、WYSIWYGエディターを無効にして、htmlソースエディターのみを残すことができます。以下の機能を選択してください。
// disable wyswyg for custom post type, using the global $post
add_filter('user_can_richedit', function( $default ){
  global $post;
  if( $post->post_type === 'product')  return false;
  return $default;
});
// disable wyswyg for custom post type, using get_post_type() function
add_filter('user_can_richedit', function( $default ){
  if( get_post_type() === 'product')  return false;
  return $default;
});または、配列内のパラメーターを使用しregister_post_type()て、呼び出しでポストエディターのサポートを直接処理できます。'supports'$args
デフォルト値は次のとおり'supports' => array( 'title', 'editor' )です。
必要なものに変更できます。例:'supports' => array( 'title' )。
再:このコメント:
AdvancedCustomFieldsと組み合わせてカスタムタイプUIを使用しています。
カスタムポストタイプのUIプラグインのすべて公開しregister_post_type() $args、そのUIでの配列パラメータを。
この場合、サポートセクションを見つけ、無効化/チェック解除するだけです。エディター。

WYSIWYGエディターを無効にして、HTMLソースエディターのみを残す別のより一貫した方法は、カスタム投稿タイプに「wp_editor_settings」フィルターを使用してtinymceを許可しないことです。
function my_post_type_editor_settings( $settings ) {
    global $post_type;
    if ( $post_type == 'my_post_type' ) {
        $settings[ 'tinymce' ] = false;
    }
    return $settings;
}
add_filter( 'wp_editor_settings', 'my_post_type_editor_settings' );
remove_post_type_support()のと同じコールバック内で呼び出すことをお勧めしますregister_post_type()。適切な実行順序を確保するためです。