pre_as_schedule_single_action - joedolson/my-calendar GitHub Wiki
Provides an opportunity to short-circuit the default process for enqueuing single actions.
Returning a value other than null from the filter will short-circuit the normal process. The expectation in such a scenario is that callbacks will return an integer representing the scheduled action ID (scheduled using some alternative process) or else zero.
Auto-generated Example
add_filter(
'pre_as_schedule_single_action',
function(
int $pre_option = null,
int $timestamp,
string $hook,
array $args,
string $group,
int $priorities,
bool $unique
) {
// Your code here.
return null;
},
10,
7
);
Parameters
int|null$pre_optionThe value to return instead of the option value.int$timestampWhen the action will run.string$hookAction hook.array$argsAction arguments.string$groupAction group.int$prioritiesAction priority.bool$uniqueUnique action.
Files
apply_filters( 'pre_as_schedule_single_action', null, $timestamp, $hook, $args, $group, $priority, $unique )