Changeset 3101942
- Timestamp:
- 06/12/2024 06:35:37 PM (22 months ago)
- Location:
- udimi-optin/trunk
- Files:
-
- 2 edited
-
class.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
udimi-optin/trunk/class.php
r2817676 r3101942 11 11 const PLUGIN_FOLDER = 'udimi-optin'; 12 12 const OPTIN_CODE_TTL_HOURS = 24; 13 const UA = 'UdimiOptinWordpress-12062024'; 13 14 14 15 private $apiError = ''; … … 103 104 } 104 105 105 $res = wp_remote_get($this->getApiUrl($key)); 106 $res = wp_remote_get($this->getApiUrl($key), [ 107 'headers' => [ 108 'User-Agent' => self::UA, 109 ], 110 ]); 106 111 107 112 if (!is_array($res)) { … … 145 150 private function getApiUrl($key) 146 151 { 147 return (self::IS_LOCAL ? self::API_HOST_LOCAL : self::API_HOST_PROD) . "/v1/guests/wordpress-plugin-ot/get-code/$key";148 }152 return (self::IS_LOCAL ? self::API_HOST_LOCAL : self::API_HOST_PROD) . "/v1/guests/wordpress-plugin-ot/get-code/$key?v=" . self::UA; 153 } 149 154 150 155 //////////// -
udimi-optin/trunk/readme.txt
r2817676 r3101942 2 2 Tags: udimi, solo, optin 3 3 Requires at least: 3.0 4 Tested up to: 6. 15 Stable tag: 2. 14 Tested up to: 6.5 5 Stable tag: 2.2 6 6 Contributors: udimi.com 7 7 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.