Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFormProcessor::get_posted_action │ private │ WC 1.0

Get the submitted form action.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->get_posted_action(): string;

Код OrderWithdrawalFormProcessor::get_posted_action() WC 11.2.2

private function get_posted_action(): string {
	$action = $this->get_posted_text_value( self::ACTION_FIELD );

	if ( in_array( $action, array( self::ACTION_REVIEW, self::ACTION_CONFIRM, self::ACTION_EDIT ), true ) ) {
		return $action;
	}

	return self::ACTION_REVIEW;
}