以下のコードをfunctions.phpに記述します。
function convert_content( $data ) { $convert_fields = array( 'post_title', 'post_content' ); foreach ( $convert_fields as $convert_field ) { $data[$convert_field] = mb_convert_kana( $data[$convert_field], 'aKV', 'UTF-8' ); } return $data; } add_filter( 'wp_insert_post_data', 'convert_content' );