Automattic\WooCommerce\Gateways\PayPal
Buttons::get_options
Get the options for the PayPal buttons.
Метод класса: Buttons{}
Хуков нет.
Возвращает
array.
Использование
$Buttons = new Buttons(); $Buttons->get_options(): array;
Список изменений
| С версии 10.5.0 | Введена. |
Код Buttons::get_options() Buttons::get options WC 11.2.2
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 );
}