ActionScheduler_Action::set_priority()
Sets the priority of the action.
Method of the class: ActionScheduler_Action{}
No Hooks.
Return
null
. Nothing (null).
Usage
$ActionScheduler_Action = new ActionScheduler_Action(); $ActionScheduler_Action->set_priority( $priority );
- $priority(int) (required)
- Priority level (lower is higher priority). Should be in the range 0-255.
ActionScheduler_Action::set_priority() ActionScheduler Action::set priority code WC 9.3.3
public function set_priority( $priority ) { if ( $priority < 0 ) { $priority = 0; } elseif ( $priority > 255 ) { $priority = 255; } $this->priority = (int) $priority; }