Youtube videos get stripped out of code when added via wp_schedule_event (1 post)

  1. Thomas Hoefter
    Posted 6 years ago #


    I have written a small plugin that can add Youtube videos automatically via the wp_schedule_event function and also manually via a button from the admin.

    The problem:
    When a post (with video) is added via wp_schedule_event the Youtube video (embed code) is stripped out of the code. Everything else is posted fine, only the video is missing.

    Now the strange thing is, when posting via the button from the admin everything works fine and the video is there as well!!

    And both ways are even using the same code and everything, so I can't figure out why one would work but not the other...

    Any help would be appreciated!


Topic Closed

This topic has been closed to new replies.

About this Topic