WC_Gateway_Paypal::set_instance │ public static │ WC 1.0

Set the instance of the gateway.

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

Хуков нет.

Возвращает

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

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

$result = WC_Gateway_Paypal::set_instance( $instance );
$instance(WC_Gateway_Paypal) (обязательный)
The instance of the gateway.

Код WC_Gateway_Paypal::set_instance() WC 11.3.0

public static function set_instance( $instance ) {
	self::$instance = $instance;
}