YouTube embed parameters?

There’s always a filter you can use to hook into the output, see embed_oembed_html. Try this in a custom plugin or child theme’s functions file, it will add any other query strings to the iframe src attribute: add_filter(“embed_oembed_html”, function( $html, $url, $attr ) { parse_str(parse_url($url, PHP_URL_QUERY), $url); if ( $url ) { foreach ( $url … Read more

Remove Title of youtube video

Update: Try this one.. it works for youtube url in your post which is converted to iframe by wordpress. function remove_youtube_controls($code){ if(strpos($code, ‘youtu.be’) !== false || strpos($code, ‘youtube.com’) !== false){ $return = preg_replace(“@src=([‘\”])?([^’\”>]*)@”, “src=$1$2&showinfo=0&rel=0”, $code); return $return; } return $code; } add_filter(’embed_handler_html’, ‘remove_youtube_controls’); add_filter(’embed_oembed_html’, ‘remove_youtube_controls’);

Getting youtube links from post_content not working

Ok here is working code: function get_yts() { $query_args = array( ‘s’ => ‘youtube.com/watch?v=’, ); $posts = get_posts( $query_args ); foreach ($posts as $p) { $input_line = $p->post_content; $output_array = array(); preg_match(‘/http(?:s?):\/\/(?:www\.)?youtu(?:be\.com\/watch\?v=|\.be\/)([\w\-\_]*)(&(amp;)?[\w\?‌​=]*)?/’, $input_line, $output_array); print_r($output_array); } }

Embed youtube list with sidemenu opened

This isn’t possible, youtube doesn’t provide an embed with an open playlist. If it did, this isn’t something that could be resolved from the WordPress end, as it’s a Youtube OEmbed issue. You will need to refer to Youtube documentation or their support channels

Link Youtube Channel In WordPress Site

Old anwser What you are trying to is to import all your videos from your YouTube channel to your WordPress blog. Unfortunately YouTube is not providing any public web service that will allow external servers to get the kind of data you want to import. I don’t think you will find any plugin capable to … Read more

Creating bulk posts with Youtube videos

You already have your updateYoutube() function. Edit it to insert a new post. Very generally: function updateYoutube( $videocode ){ global $conn; $run = $conn->query(“SELECT `ID` FROM `youtubetable` WHERE `ID` = ‘$videocode'”); if ($run->num_rows > 0) return false; else { if ($conn->query(“INSERT INTO youtubetable (`ID`) VALUES (‘$videocode’)”) === TRUE) { // ################################# // NOTE: The following … Read more

Video Embed with Captions in Turkish

Okay the thing is that the oembed endpoint seems not to support any other than the default parameters. So it seems that all you can do is parse the response and add in your parameters to the iframe src. This should do it (untested) function wpse_218836_add_youtube_parameter( $return, $data, $url ){ if ( $data->provider_name === ‘YouTube’){ … Read more

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