Automattic\WooCommerce\Internal\Admin\Notes
WooCommercePayments::is_installed
Check if the WooCommerce Payments plugin is active or installed.
Method of the class: WooCommercePayments{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WooCommercePayments::is_installed();
WooCommercePayments::is_installed() WooCommercePayments::is installed code WC 10.3.6
protected static function is_installed() {
if ( defined( 'WC_Payments' ) ) {
return true;
}
include_once ABSPATH . '/wp-admin/includes/plugin.php';
return 0 === validate_plugin( self::PLUGIN_FILE );
}