WC_Gateway_Paypal_Buttons::get_current_page_for_app_switchpublicWC 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::get_current_page_for_app_switch(). This method will be removed in 11.0.0 instead.

Get the current page URL, to be used for App Switch. Limited to checkout, cart, and product pages for security.

Method of the class: WC_Gateway_Paypal_Buttons{}

No Hooks.

Returns

String.

Usage

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

Changelog

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

WC_Gateway_Paypal_Buttons::get_current_page_for_app_switch() code WC 10.8.1

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

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