acfでiframeを使う方法

functions.phpに以下を追加する

add_filter( 'wp_kses_allowed_html', 'acf_add_allowed_iframe_tag', 10, 2 );
  function acf_add_allowed_iframe_tag( $tags, $context ) {
  if ( $context === 'acf' ) {
  $tags['iframe'] = array(
  'src' => true,
  'height' => true,
  'width' => true,
  'frameborder' => true,
  'allowfullscreen' => true,
  );
  }
  
  return $tags;
  }