From the iframe wp plugin code, first working version