LLMS_Update::schedule_function( string $func, array $args = array() )
Schedules a function
Parameters Parameters
- $func
-
(string) (Required) Function name / callable.
- $args
-
(array) (Optional) Array of arguments to pass to the function.
Default value: array()
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.update.php
protected function schedule_function( $func, $args = array() ) { $this->log( sprintf( 'function `%s()` scheduled with arguments: %s', $func, json_encode( $args ) ) ); as_schedule_single_action( time(), $this->get_hook( $func ), $args, 'llms_update_' . $this->version ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.32.0 | Update to use latest action-scheduler functions. |
3.0.0 | Introduced. |