I’m trying and failing to register an embed code for content from padlet.com (strangely it’s supported in WP.com but not WP.org). A URL like https://padlet.com/cogdogblog/aos9fosbbwk4 should embed like <div class=”padlet-embed” style=”border:1px solid rgba(0,0,0,0.1);border-radius:2px;box-sizing:border-box;overflow:hidden;position:relative;width:100%;background:#F4F4F4″><p style=”padding:0;margin:0″><iframe src=”https://padlet.com/embed/aos9fosbbwk4″ frameborder=”0″ allow=”camera;microphone;geolocation” style=”width:100%;height:608px;display:block;padding:0;margin:0″></iframe></p> My attempt that fails so far add_action( ‘init’, function(){ $regex_url=”#https?://padlet\.com/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)$#i”; wp_embed_register_handler( ‘padlet’, $regex_url, ‘wp_embed_handler_padlet’, true ); }); … Read more