# woocommerce-pos/1.10.17/includes/Integrations/WePOS.php

WCPOS – Point of Sale (POS) plugin for WooCommerce, version 1.10.17. 46 lines.

- Page: https://pluginprobe.com/plugins/woocommerce-pos/1.10.17/code/includes/Integrations/WePOS.php
- Raw: https://pluginprobe.com/plugins/woocommerce-pos/1.10.17/raw/includes/Integrations/WePOS.php
- Modified: 2026-02-06T20:51:24+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/woocommerce-pos/1.10.17/code/includes/Integrations/WePOS.php#L10-L20`.

```php
<?php
/**
 * WePOS.
 *
 * @package WCPOS\WooCommercePOS
 */

namespace WCPOS\WooCommercePOS\Integrations;

use const WCPOS\WooCommercePOS\PLUGIN_FILE;

/**
 * WePOS Integration.
 *
 * WePOS alters the WC REST API response for variable products, it includes the full list of variations
 * instead of just the variation IDs. This breaks variations for WCPOS (and anyone else).
 */
class WePOS {
	/**
	 * Constructor.
	 */
	public function __construct() {
		add_action( 'admin_init', array( $this, 'check_conflict' ) );
	}

	/**
	 * Check for wePOS plugin conflict.
	 */
	public function check_conflict(): void {
		// Check if wePOS is active.
		if ( is_plugin_active( 'wepos/wepos.php' ) ) {
			deactivate_plugins( PLUGIN_FILE );
			add_action( 'admin_notices', array( $this, 'render_conflict_notice' ) );
		}
	}

	/**
	 * Render conflict admin notice.
	 */
	public function render_conflict_notice(): void {
		echo '<div class="notice notice-error is-dismissible">
            <p>' . esc_html__( 'WCPOS cannot run alongside the wePOS plugin due to compatibility issues. WCPOS has been deactivated.', 'woocommerce-pos' ) . '</p>
        </div>';
	}
}

```
