Support » Plugin: WP RSS Aggregator » Custom Cron

  • Resolved Uriahs Victor

    (@uriahs-victor)


    I’ve seen your documentation on custom cron and I already know how to do this but I’m not sure how to get the plugin to pick up the new cron?

    I’m trying to get a specific feed source to work on a custom processing interval of every 3 days

    add_filter( 'cron_schedules', 'cron_add_weekly' );
    
    function cron_add_weekly( $schedules ) {
    $schedules['weekly'] = array(
    'interval' => 259200,
    'display' => __( 'Every 3 Days' )
    );
    return $schedules;
    }

    I’m not seeing the new cron option in the list of intervals on the individual feeds nor in the settings, code is being added via functions.php

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Eric Gunawan

    (@erricgunawan)

    Hi Uriahs (@uriahs-victor),

    Can you please send us a screenshot of your Feed Processing metabox in your individual Feed Source setting, after you add that filter?

    Uriahs Victor

    (@uriahs-victor)

    Here’s what it shows: https://pasteboard.co/GU5qGxR.png

    I see multiple same name schedules and I assume that’s from multiple plugins creating their own cron schedule.

    Any ideas here?

    Plugin Support Eric Gunawan

    (@erricgunawan)

    Hi Uriahs,

    Can you please try changing the array index:

    $schedules['weekly']

    to something else, such as:

    $schedules['every_three_days']

    or else?

    It could be that the weekly index is already taken and being overridden by other schedules.

    Let us know if this works for you.

    That worked thanks a bunch

    Plugin Support Eric Gunawan

    (@erricgunawan)

    Glad to hear it works for you, Uriahs ( @uriahs-victor )!

    If you like our products or the quality of our support, please consider leaving a positive review here.

    It would be greatly appreciated by the whole team.

    Have a great day!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.