Automattic\WooCommerce\Internal\Admin\Notes

WooCommercePayments::is_installed()protected staticWC 1.0

Check if the WooCommerce Payments plugin is active or installed.

Метод класса: WooCommercePayments{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$result = WooCommercePayments::is_installed();

Код WooCommercePayments::is_installed() WC 7.3.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 );
}