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;
  }

MW WP FORM datepickerが動かない

<?php wp_head(); ?> 下に入れる

	<link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css">
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
	<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>

MW WP FORM サンクスページ

thanksページを作りたくないのでパラメータを付ける

functions.php

function my_mwform_after_send( $Data ) {
    if ( $Data->get_form_key() === 'mw-wp-form-xxx' ) {
      $id = $Data->get( 'id' ); $url = get_permalink($id);
      wp_redirect($url.'?q=thanks');
      exit;
    }
  }
  add_action( 'mwform_after_send_mw-wp-form-xxx', 'my_mwform_after_send' );

timthumb

functions.php

/* ===============================================
# timthumb
=============================================== */
define('THEME_DIR', get_template_directory_uri());
/* Timthumb CropCropimg */
function thumbCrop($img='', $w=false, $h=false , $zc=1, $a=false, $cc=false ){
    if($h)
        $h = "&amp;h=$h";
    else
        $h = "";
    if($w)
        $w = "&amp;w=$w";
    else
        $w = "";
	if($a)
        $a = "&amp;a=$a";
    else
        $a = "";
	if($cc)
        $cc = "&amp;cc=$cc";
    else
        $cc = "";
    $img = str_replace(get_bloginfo('url'), '', $img);
     $image_url = str_replace("http://","http://",THEME_DIR) . "/timthumb/timthumb.php?src=" . $img . $h . $w. "&amp;zc=".$zc .$a .$cc;
    return $image_url;
}

HTML

<?php
							$image = get_field('image');
							$size = 'large'; // (thumbnail, medium, large, full or custom size)
							if ($image) {
								$image_url1 = wp_get_attachment_image_url($image, $size);
								$image_url2 =  get_template_directory_uri() . "/timthumb/timthumb.php?src=" . $image_url1 . '&amp;h=564' . '&amp;w=752';
							?>
								<img src="<?php echo $image_url2; ?>">
							<?php
							} else {
							?>
								<img src="https://placehold.jp/eeeeee/ffffff/752x564.png?text=No%20photo" alt="">
							<?php
							}
							?>

[WordPress]コンテンツエディタ削除

/* ===============================================
# エディタ削除
=============================================== */

function top_disable_block_editor($use_block_editor, $post){
	$post_type = $post->post_type;
	$post_name = $post->post_name;

	if($post_type === 'post' || $post_type === 'directsalon') return false;
	return $use_block_editor;
}
add_filter( 'use_block_editor_for_post', 'top_disable_block_editor', 10, 2 );