Add WcPay settings info to WC Tracker
This commit is contained in:
parent
c9696e66b9
commit
80bf1cfb76
|
@ -151,6 +151,9 @@ class WC_Tracker {
|
||||||
// Payment gateway info.
|
// Payment gateway info.
|
||||||
$data['gateways'] = self::get_active_payment_gateways();
|
$data['gateways'] = self::get_active_payment_gateways();
|
||||||
|
|
||||||
|
// WcPay settings info.
|
||||||
|
$data['wcpay_settings'] = self::get_wcpay_settings();
|
||||||
|
|
||||||
// Shipping method info.
|
// Shipping method info.
|
||||||
$data['shipping_methods'] = self::get_active_shipping_methods();
|
$data['shipping_methods'] = self::get_active_shipping_methods();
|
||||||
|
|
||||||
|
@ -303,6 +306,15 @@ class WC_Tracker {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the settings of WooCommerce Payments plugin
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
private static function get_wcpay_settings() {
|
||||||
|
return get_option( 'woocommerce_woocommerce_payments_settings' );
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check to see if the helper is connected to woocommerce.com
|
* Check to see if the helper is connected to woocommerce.com
|
||||||
*
|
*
|
||||||
|
@ -589,6 +601,7 @@ class WC_Tracker {
|
||||||
return $active_gateways;
|
return $active_gateways;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of all active shipping methods.
|
* Get a list of all active shipping methods.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue