WC_Install::set_paypal_standard_load_eligibility()private staticWC 5.5.0

Sets whether PayPal Standard will be loaded on install.

Method of the class: WC_Install{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Install::set_paypal_standard_load_eligibility();

Changelog

Since 5.5.0 Introduced.

WC_Install::set_paypal_standard_load_eligibility() code WC 9.4.2

private static function set_paypal_standard_load_eligibility() {
	// Initiating the payment gateways sets the flag.
	if ( class_exists( 'WC_Gateway_Paypal' ) ) {
		( new WC_Gateway_Paypal() )->should_load();
	}
}