Any way to use a custom Parameter for vimeo embed without using an iframe?

You should add a filter on oembed provider to allow customs parameters: add_filter( ‘oembed_fetch_url’, ‘my_oembed_fetch_url’, 10, 3 ); function my_oembed_fetch_url( $provider, $url, $args ) { // You can find the list of defaults providers in WP_oEmbed::__construct() if ( strpos( $provider, ‘vimeo.com’ ) !== false) { // Check the full list of args here: https://developer.vimeo.com/apis/oembed if … Read more

use of tag into wordpress

I think that WordPress currently not allow the svg tag in his editor. But you can change this, see this answer for more hints, background. I think the follow small source should help you to allow this tag and his attribute. Copy in a plugin (add a plugin header) and activate. But I think, that … Read more

wp_embed_register_handler is not working

You are trying to match the r2jeim68kuq6.html part, but you’re not allowing dots in your regex pattern here: ‘#https://vidoza\.net/([a-zA-Z0-9_-]+)$#i’ You can try e.g. (removing the A-Z too because of the case-insensitive i search): ‘#https://vidoza\.net/([a-z0-9_-]+)\.html$#i’ if .html is a standard extension and where you also adjust the iframe source to: src=”https://vidoza.net/embed-%1$s.html” Hope it helps!

WP Query by Gutenberg block and get its attribute

After hours of googling I came up with following solution. Maybe once will help to someone. 1) query post where is used gutenberg youtube block: $args = array( ‘post_type’ => ‘post’, ‘post_status’ => ‘publish’, ‘s’ => ‘core-embed/youtube’, ‘posts_per_page’ => 1 ); $query = new WP_Query($args); 2) extract the URL from youtube block of the post … Read more

how to embed external webpage in my wordpress page

You could simply iframe the content into your pages? <iframe src=”http://www.w3schools.com”></iframe> Some more info on iframe params are here: http://www.w3schools.com/tags/tag_iframe.asp Otherwise a nicer alternative might be to show the external pages via a modal window (which is still essentially an iframe). You could try Fancybox (http://fancyapps.com/fancybox/#examples), there are iframe examples and code on the page, … Read more

How to change WordPress embedded player size or show just the play button

I assume you’re talking about embedding audio files, like: The audio embed handler is registered within wp_maybe_load_embeds() and filtered through the wp_embed_handler_audio filter. So within WP_Embed::shortcode() this generates to: so some of the methods mentioned here for the shortcode should work. Since we are using the Output: Play button: Pause button: Tested on the Twenty … Read more

How to remove the embed_footer?

The comments button and the share button are generated in two separate default actions, so you have to remove them both: remove_action( ’embed_content_meta’, ‘print_embed_comments_button’ ); remove_action( ’embed_content_meta’, ‘print_embed_sharing_button’ );

Customize Embedded Tweets (or, How To Hide Photos in Embedded Tweets)

Here’s one way using the oembed_fetch_url filter to add the hide_media query parameter, that’s also mentioned in the Twitter doc page you linked to: Set an oEmbed query parameter of hide_media=true or add a data-cards=”hidden” attribute to the resulting <blockquote> element to prevent expanded content display. Here’s an example: /** * Hide media for all … Read more

Any way to use a custom Parameter for youtube embed without using an iframe?

No need for a plugin, You can simply use the Oembed class’s oembed_result filter hook like this: function Oembed_youtube_no_title($html,$url,$args){ $url_string = parse_url($url, PHP_URL_QUERY); parse_str($url_string, $id); if (isset($id[‘v’])) { return ‘<iframe width=”‘.$args[‘width’].'” height=”‘.$args[‘height’].'” src=”http://www.youtube.com/embed/’.$id[‘v’].’?rel=0&showinfo=0″ frameborder=”0″ allowfullscreen></iframe>’; } return $html; } add_filter(‘oembed_result’,’Oembed_youtube_no_title’,10,3); so just paste this code in your theme’s functions.php file, setup the width and height … Read more