Hi, the plugin uses the WordPress cron_schedules hook to add it's own Weekly schedule, but it does in the wrong way. Other plugin using the same hook but loaded before it have it's own schedules removed.
The wrong code starts on line 356 of bp-activity-subscription-digest.php
function ass_cron_add_weekly( $schedules ) {
// note it looks like by returning just the value, we'd be replacing the filtered function, however the function does an array merge, so we return just what we want to add.
return array(
'weekly' => array( 'interval' => 604800, 'display' => __( 'Once Weekly', 'bp-ass' ) )
);
}
and can be corrected this way:
function ass_cron_add_weekly( $schedules ) {
// note it looks like by returning just the value, we'd be replacing the filtered function, however the function does an array merge, so we return just what we want to add.
$schedules['weekly'] = array( 'interval' => 604800, 'display' => __( 'Once Weekly', 'bp-ass' ) );
return $schedules;
}
so the weekly schedule is added to other schedules that may have already added.
Bye, Stefano.
ps: I tried to find a way to write directly the authors, but there is not reference site for this plugin.