Viewing 2 replies - 1 through 2 (of 2 total)
  • add this code to the end of your theme’s functions.php file. Works great!

    add_action('save_post', 'save_other_video_thumbnail', 100, 1);
    function save_other_video_thumbnail($post_id) {
    $postdata = get_postdata($post_id);
    if ( $postdata['post_status'] == 'draft' OR $postdata['post_status'] == 'future') {
    get_video_thumbnail($post_id);
    }
    }
    Thread Starter Brian Cruikshank

    (@brianbws)

    Thank you so much! I almost ditched the plugin over this.

    Also added a quick check for the function in case the plugin isn’t enabled.

    add_action('save_post', 'save_other_video_thumbnail', 100, 1);
    function save_other_video_thumbnail($post_id) {
      $postdata = get_postdata($post_id);
      if ( $postdata['post_status'] == 'draft' OR $postdata['post_status'] == 'future') {
        if ( function_exists('get_video_thumbnail') )
          get_video_thumbnail($post_id);
      }
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Doesn't Generate Thumbnail From Scheduled Posts’ is closed to new replies.