# defender-security/3.1.0/src/integrations/class-woocommerce.php

Defender Security – Malware Scanner, Login Security &amp; Firewall, version 3.1.0. 28 lines.

- Page: https://pluginprobe.com/plugins/defender-security/3.1.0/code/src/integrations/class-woocommerce.php
- Raw: https://pluginprobe.com/plugins/defender-security/3.1.0/raw/src/integrations/class-woocommerce.php
- Modified: 2021-10-25T08:31:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/defender-security/3.1.0/code/src/integrations/class-woocommerce.php#L10-L20`.

```php
<?php

namespace WP_Defender\Integrations;

if ( ! defined( 'ABSPATH' ) ) {
	die;
}

/**
 * Woocommerce integration module.
 * Class Woocommerce
 *
 * @since 2.6.1
 * @package WP_Defender\Integrations
 */
class Woocommerce {

	/**
	 * Check if Woo is activated.
	 *
	 * @return bool
	 */
	public function is_activated() {

		return class_exists( 'woocommerce' );
	}
}

```
