• Hi,

    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!

    Thanks!

  • The topic ‘Youtube videos get stripped out of code when added via wp_schedule_event’ is closed to new replies.