ActionScheduler_Versions::register()
Method of the class: ActionScheduler_Versions{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ActionScheduler_Versions = new ActionScheduler_Versions(); $ActionScheduler_Versions->register( $version_string, $initialization_callback );
- $version_string (required)
- -
- $initialization_callback (required)
- -
ActionScheduler_Versions::register() ActionScheduler Versions::register code WC 9.3.3
public function register( $version_string, $initialization_callback ) { if ( isset($this->versions[$version_string]) ) { return FALSE; } $this->versions[$version_string] = $initialization_callback; return TRUE; }