We'll create fresh WordPress site with Oembed for My Mitsu Estimation Form installed. You have 20 minutes to test the plugin after that site we'll be deleted.
My Mitsu, is a webservice in Japan, allows users to create an estimation(calculation) form. A powerful form allows you to create a conditional form with calculation, and outputs a PDF file. Optionally, you can create a PayPal payment link. It is suited for business persons.
https://my-mitsu.com/ (written in Japanese.)
My Mitsu allows you to put a form into your WordPress website, by filling in a html code, like
<iframe src=”…” width=”…” height=”…”></iframe>
This plugin allows you to output an iframe html tag in a simple way. Simply filling in a url will ouput an iframe html code.
https://my-mitsu.jp/estimation/274 will output <iframe src=”https://my-mitsu.jp/estimation/274″ id=”mymitsu” width=”640″ height=”960″></iframe>
The width/height is determined by the $content_width, which is set in your theme. If you plan to change the width/height, you can use a filter hook.
Filter Sample
This plugin allows you to set the values for width, and height. You can alter them by hooking the “mymitsu_oembed_width” and “mymitsu_oembed_height” filter. Here is a sample code.
add_filter( 'mymitsu_oembed_width', 'my_embed_width' );
function my_embed_width() {
return 800;
}