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.
Return
null
. Nothing (null).
Usage
$result = WooCommercePayments::is_installed();
WooCommercePayments::is_installed() WooCommercePayments::is installed code WC 9.6.1
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 ); }