HEX
Server: Apache
System: Linux beta.alfanet.ee 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: busines1 (1252)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home-ssd1/busines1/www/wp-content/plugins/woocommerce-multilingual/compatibility/WcPip/Helper.php
<?php

namespace WCML\Compatibility\WcPip;

class Helper {

	/**
	 * @return false|int|string
	 */
	public static function getPipOrderId() {
		$order_id = false;

		if ( isset( $_GET['wc_pip_action'] ) && isset( $_GET['order_id'] ) ) {
			$order_id = $_GET['order_id'];
		} elseif (
			isset( $_POST['action'] ) &&
			(
				$_POST['action'] == 'wc_pip_order_send_email' ||
				$_POST['action'] == 'wc_pip_send_email_packing_list'
			) &&
			isset( $_POST['order_id'] )
		) {
			$order_id = $_POST['order_id'];
		}

		return $order_id;
	}
}