How to remove the embed_footer?

I’m trying to remove the entire embed_footer from WordPress embedded posts. By adding the following code in the functions.php, I was able to remove the site title and comments icon. But still, the share icon is there. add_filter(’embed_site_title_html’,’__return_false’); remove_action( ’embed_content_meta’, ‘print_embed_comments_button’ ); Is there a way to remove the entire embed_footer? Or can I remove … Read more

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

I am trying to get some oembed parameters attached to my Vimeo clips. I tried to get it going using the following two instructions: Passing Parameters to a Vimeo link in a WordPress Custom Field – LimeCanvas.com Any way to use a custom parameter for YouTube embed without using an iframe – WordPress.SE.com Unfortunately what … Read more

Displaying oEmbed errors?

Sometimes embedding an item via oEmbed is not possible, for example when a YouTube video has embedding disabled. The oEmbed service will return a 401 Unauthorized, and the code will not be converted. Is there a way to notify the user of this? The current workflow is non-intuitive (at least to me), and I would … Read more

How to oEmbed from custom field, responsive to container size and responsive

I am using Magic Fields 2 to add custom fields/meta boxes. One custom field is for a Vimeo or YouTube video URL to be displayed. The following code oEmbeds the video URL: <?php if (!((get_post_meta($post->ID, ‘video_url’, TRUE))==”)) { echo wp_oembed_get( get_post_meta($post->ID, “video_url”, true) ); }?> To resize the video, I have used added the code … Read more

Manipulating oembed_dataparse stopped working for YouTube embeds

My go-to code to manipulate YouTube embeds does not work anymore. Can anyone explain to me what I am doing wrong? This is my code in functions.php // OEMBED FILTER function bolster_oembed_filter( $return, $data ) { // YOUTUBE (ADD PARAMS, NOCOOKIE DOMAIN) if( is_object( $data ) && property_exists( $data, ‘provider_name’ ) && ‘YouTube’ === $data->provider_name … Read more

How to use get_media_embedded_in_content function

I am trying to figure out how to use this new WordPress function. get_media_embedded_in_content (string $content); The documentation says, “a string that might contain media data” but that is too vague. I’ve tried this below but it doesn’t work. Can anyone provide an example? get_media_embedded_in_content (string ‘get_the_content’); Example: add_shortcode( ‘pslider’, ‘pslider_shortcode’ ); function pslider_shortcode($atts){ ob_start(); … Read more