Automattic\WooCommerce\Internal\OrderWithdrawal

OrderWithdrawalFormProcessor::get_posted_action │ private │ WC 1.0

Get the submitted form action.

Method of the class: OrderWithdrawalFormProcessor{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->get_posted_action(): string;

OrderWithdrawalFormProcessor::get_posted_action() code WC 11.1.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;
}