Created
August 5, 2014 22:01
-
-
Save jazzsequence/ad1b7ff04611671aeb1b to your computer and use it in GitHub Desktop.
Filter the automatic featured images from videos content to pull from a postmeta value
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function filter_featured_images_from_videos( $content ) { | |
global $post; | |
$content .= get_post_meta( $post->ID, '_video_url', true ); | |
return $content; | |
} | |
add_filter( 'wds_featured_images_from_video_filter_content', 'filter_featured_images_from_videos' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment