Automattic\WooCommerce\Gateways\PayPal

Buttons::get_optionspublicWC 10.5.0

Get the options for the PayPal buttons.

Method of the class: Buttons{}

No Hooks.

Returns

Array.

Usage

$Buttons = new Buttons();
$Buttons->get_options(): array;

Changelog

Since 10.5.0 Introduced.

Buttons::get_options() code WC 10.9.4

public function get_options(): array {
	$common_options = $this->get_common_options();
	$options        = array(
		'partner-attribution-id' => 'Woo_Cart_CoreUpgrade',
		'page-type'              => $this->get_page_type(),
	);

	return array_merge( $common_options, $options );
}