Learndash_Admin_Action_Scheduler::register_callback( string $task_name, callable $callback, int $priority = 10, int $accepted_args = 1 )
Register an action tasks.
Contents
Description #
Parameters #
- $task_name
-
(string) (Required) Name of the task.
- $callback
-
(callable) (Required) Callback to run.
- $priority
-
(int) (Optional) Priority of the task.
Default value: 10
- $accepted_args
-
(int) (Optional) Number of accepted arguments.
Default value: 1
Source #
File: includes/admin/class-learndash-admin-action-scheduler.php