LLMS_Update::schedule_function( string $func, array $args = array() )

Schedules a function

Parameters Parameters


(string) (Required) Function name / callable.


(array) (Optional) Array of arguments to pass to the function.

Default value: array()

Top ↑

Return Return


Top ↑

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 );

Top ↑

Changelog Changelog

Version Description
3.32.0 Update to use latest action-scheduler functions.
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.