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

OEmbed from Pinterest

I found that https://wordpress.org/plugins/pinterest-widgets actually has the needed functionality but doesn’t mention it in the description. After installing and activating you can add a pinboard to a post by using the following shortcodes [pin_board url=”http://www.pinterest.com/pinterest/pin-pets/”] [pin_board url=”http://www.pinterest.com/pinterest/pin-pets/” size=”header”] [pin_board url=”http://www.pinterest.com/pinterest/pin-pets/” size=”custom” image_width=”100″ board_width=”900″ board_height=”450″] more options can be found on the plugins “settings” page after … Read more

How to overwrite youtube embed?

Taking a closer look at the code provided on that site, it appears that the main differences with what it output by default by WordPress is the following: the iframe is wrapped with a div that has a class of embed-container there are CSS styles that are used by that class In WordPress, to wrap … Read more

Youtube – Embed as IFRAME

If you don’t want to utilize the latest oembed functions and want the old iframe way from any page or post, you can do these: Get the embed code from any youtube video. While editing/creating your post/page, select the Text(HTML) mode of the editor Simply paste the embed code As noted by PayteR, this will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)