-
Notifications
You must be signed in to change notification settings - Fork 16
pre_as_schedule_single_action
Joe Dolson edited this page May 15, 2026
·
3 revisions
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.
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
);-
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.
apply_filters( 'pre_as_schedule_single_action', null, $timestamp, $hook, $args, $group, $priority, $unique )Replace the list footer for upcoming events lists. Default value </ul></div>.
add_filter(
'mc_upcoming_events_footer',
function( string $header ) {
// Your code here.
return $header;
}
);-
string$headerExisting upcoming events footer HTML.
string List header HTML.
apply_filters( 'mc_upcoming_events_footer', $footer )