WordPress save youtube or vimeo thumbnail as featured image

How to save youtube or vimeo thumbnail as featured image of wordpress post.For a examaple if you add the video url as custom meta data or post content you need to get it’s video thumbnail and save it as featured image automatically.
This post is discussing how to save youtube vimeo thumbnail as featured image in wordpress post or page or custom post types.

Continue reading WordPress save youtube or vimeo thumbnail as featured image

PHP get youtube,vimeo video url from string and check if exist and play

When you are working with php, probably your page includes youtube or vimeo video url in the description.Check that youtube/vimeo video url is valid and that video is exist, then it must be play in the page.So now I’m going to describes how to get only that video url from the description, check that video is exist and how to to play it.
Continue reading PHP get youtube,vimeo video url from string and check if exist and play