Generate a WP post from Youtube Feed

If working with wp_insert_post and the youtube api is too much work, or too complicated, you may be interested in the plugin called “Automatic Youtube Video Posts” (AYVP). It has been working quite well for us. There are some bugs (nothing critical) and it is not the most efficient plugin, but it does exactly what … Read more

change output location of plugin function using a custom hook

Something like what you are doing should work but I think you have a couple of things going wrong. First, it sounds like you’ve hacked the plugin. Don’t do that, just remove the callback from the the_content hook. In your theme’s functions.php add: remove_filter(‘the_content’, ‘append_the_video’); The youtube_video() function depends on the $post variable. That means … Read more

Filter for wp_embed_handler_youtube not working

a little late, but it might be because this is a filter, and you’re adding it as an action, try add_filter( ‘wp_embed_handler_youtube’, ‘bigger_youtube_embeds’, 10, 4); function bigger_youtube_embeds($embed, $attr, $url, $rawattr) { // alter the $embed string… return $embed; }