WC_Payment_Gateways::should_load_paypal_standard()protectedWC 5.5.0

Determines if PayPal Standard should be loaded.

Method of the class: WC_Payment_Gateways{}

No Hooks.

Return

true|false. Whether PayPal Standard should be loaded or not.

Usage

// protected - for code of main (parent) or child class
$result = $this->should_load_paypal_standard();

Changelog

Since 5.5.0 Introduced.

WC_Payment_Gateways::should_load_paypal_standard() code WC 8.7.0

protected function should_load_paypal_standard() {
	$paypal = new WC_Gateway_Paypal();
	return $paypal->should_load();
}