WordPress at Your Fingertips
function is not described

WC_Payment_Gateway::set_current() public WC 1.0

Set as current gateway.

Set this as the current gateway.

{} It's a method of the class: WC_Payment_Gateway{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Payment_Gateway = new WC_Payment_Gateway();
$WC_Payment_Gateway->set_current();

Code of WC_Payment_Gateway::set_current() WC 5.8.0

public function set_current() {
	$this->chosen = true;
}