WordPress.org

Ready to get started?Download WordPress

Forums

BuddyPress Group Email Subscription
Cron Jobs not scheduled properly (3 posts)

  1. simon.goodchild
    Member
    Posted 4 years ago #

    I found this plug-in was causing problems with other plug-ins that use the cron.

    The developer of the other plug-in found the following. I was wondering if this could be improved as it's causing a problem?

    They [you] are not using the cron_schedules filter hook correctly. The hook's API is here: http://codex.wordpress.org/Plugin_API/Filter_Reference/cron_schedules . They are entirely replacing the schedules and not appending to it as they should.

    I added line #338 to the bp-activity-subscription-digest.php file and added line #2250 to the bp-activity-subscription-functions.php file. Both inside the "buddypress-group-email-subscription" plugin folder.

  2. inovawebdesign
    Member
    Posted 3 years ago #

    @simon - it sounds like you fixed a bug that i'm working on, but i don't fully understand - WHAT did you add to lines 338 and 2250? thanks.

  3. Dwenaus
    Member
    Plugin Author

    Posted 3 years ago #

    At first I thought the cron was done wrong, however upon further investigation, the add_filter is actually combined with an array merge in the parent function, so you can simply pass back the array and it won't replace it - but will be added to the cron array. clear as mud?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic