ActionScheduler_Action::set_priority
Sets the priority of the action.
Method of the class: ActionScheduler_Action{}
No Hooks.
Returns
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 10.3.6
public function set_priority( $priority ) {
if ( $priority < 0 ) {
$priority = 0;
} elseif ( $priority > 255 ) {
$priority = 255;
}
$this->priority = (int) $priority;
}