Show if PPEC was used in status report

This commit is contained in:
Alex P 2021-11-22 18:21:01 +02:00
parent 195474ad6e
commit b8b4766fba
2 changed files with 19 additions and 0 deletions

View file

@ -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.
*