mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Show if PPEC was used in status report
This commit is contained in:
parent
195474ad6e
commit
b8b4766fba
2 changed files with 19 additions and 0 deletions
|
@ -29,6 +29,15 @@ class PPECHelper {
|
|||
const PPEC_SETTINGS_OPTION_NAME = 'woocommerce_ppec_paypal_settings';
|
||||
|
||||
|
||||
/**
|
||||
* Checks if the PayPal Express Checkout plugin was configured previously.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public static function is_plugin_configured() {
|
||||
return is_array( get_option( self::PPEC_SETTINGS_OPTION_NAME ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the PayPal Express Checkout plugin is active.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue