Automattic\WooCommerce\Internal\Admin\Notes

WooCommercePayments::is_installed()protected staticWC 1.0

Check if the WooCommerce Payments plugin is active or installed.

Method of the class: WooCommercePayments{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WooCommercePayments::is_installed();

WooCommercePayments::is_installed() code WC 8.7.0

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 );
}