WC_Gateway_Paypal_Buttons::is_enabledpublicWC 1.0

Deprecated since 0.5.0. It is no longer supported and may be removed in future releases. Use Automattic\WooCommerce\Gateways\PayPal\Buttons::is_enabled(). This method will be removed in 11.0.0 instead.

Whether PayPal Buttons is enabled.

Method of the class: WC_Gateway_Paypal_Buttons{}

No Hooks.

Returns

true|false.

Usage

$WC_Gateway_Paypal_Buttons = new WC_Gateway_Paypal_Buttons();
$WC_Gateway_Paypal_Buttons->is_enabled();

Changelog

Deprecated since 10.5.0 Use Automattic\WooCommerce\Gateways\PayPal\Buttons::is_enabled() instead. This method will be removed in 11.0.0.

WC_Gateway_Paypal_Buttons::is_enabled() code WC 10.7.0

public function is_enabled() {
	wc_deprecated_function(
		__METHOD__,
		'10.5.0',
		'Use Automattic\WooCommerce\Gateways\PayPal\Buttons::is_enabled() instead.'
	);

	return $this->buttons->is_enabled();
}