ActionScheduler_Action::set_prioritypublicWC 1.0

Sets the priority of the action.

Метод класса: ActionScheduler_Action{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$ActionScheduler_Action = new ActionScheduler_Action();
$ActionScheduler_Action->set_priority( $priority );
$priority(int) (обязательный)
Priority level (lower is higher priority). Should be in the range 0-255.

Код ActionScheduler_Action::set_priority() WC 9.9.5

public function set_priority( $priority ) {
	if ( $priority < 0 ) {
		$priority = 0;
	} elseif ( $priority > 255 ) {
		$priority = 255;
	}

	$this->priority = (int) $priority;
}