=== AyeCode Connect ===
Contributors: stiofansisland, paoltaia, ayecode, Ismiaini
Donate link: https://www.ko-fi.com/stiofan
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags:  ayecode, service, geodirectory, userswp, getpaid
Requires at least: 6.0
Requires PHP: 5.6
Tested up to: 7.0
Stable tag: 1.4.19


Use this service plugin to easily activate any of our products, open a support ticket and view documentation all from your wp-admin!

== Description ==

To take full advantage of this plugin you should have one of our plugins installed.

[GeoDirectory](https://wordpress.org/plugins/geodirectory/) | [UsersWP](https://wordpress.org/plugins/userswp/) | [GetPaid](https://wordpress.org/plugins/invoicing/) | [BlockStrap](https://wordpress.org/plugins/blockstrap-page-builder-blocks/)

AyeCode Connect is a service plugin, meaning that it will have no functionality until you connect your site to ours. This link allows us to provide extra services to your site such as live documentation search and submission of support tickets.
After connecting your site you can install our update plugin which will give you the ability to automatically sync license keys of purchases and also be able to remotely install and update purchased products.

You will be able to remotely manage your activated sites and licences all from your account area on our site.

You can also use our one click demo importer.

NEW: Cloudflare Turnstile Captcha feature.  You can now activate Cloudflare turnstile on your site which will add a captcha to all AyeCode Ltd products ( GeoDirectory, UsersWP, GetPaid, BlockStrap ).
Our implementation of Turnstile is loaded only when the field is show on the screen which helps with speed and SEO of your site.
NOTE: Your site does NOT have to be using Cloudflare to be able to use Cloudflare Turnstile.

== Installation ==

= Minimum Requirements =

* WordPress 5.0 or greater
* PHP version 5.6 or greater
* MySQL version 5.0 or greater

= Automatic installation =

Automatic installation is the easiest option. To do an automatic install of AyeCode Connect, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type "AyeCode Connect" and click Search Plugins. Once you've found our plugin you install it by simply clicking Install Now.

= Manual installation =

The manual installation method involves downloading our plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex will tell you more [here](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

= Updating =

Automatic updates should seamlessly work. We always suggest you backup up your website before performing any automated update to avoid unforeseen problems.


== Frequently Asked Questions ==

= Do you have T&C's and a Privacy Policy? =

Yes, please see our [terms & conditions](https://ayecode.io/terms-and-conditions/) and [privacy policy.](https://ayecode.io/privacy-policy/)

= Do i need to pay to use this? =

No, you can register a free account on our site which will provide you with live documentation search and the ability to get support directly from your wp-admin area.

= Is my connection to your site safe? =

Yes, our system will only connect via HTTPS ensuring all passed data is encrypted.
Additionally, we built our systems in such a way that;
Should your database or our database (or both) be compromised, this would not result in access to your site.
Should your files or our files (or both) be compromised, this would not result in access to your site.

= Your demo importer is not working? =

If your host runs "mod security" on your hosting and has some specific additional rules active, this can block some of our API calls. Please contact our support for help with this.

== Screenshots ==

1. Pre Connection.
2. Connection Screen.
3. Connected.

== Changelog ==

= 1.4.19 - 2026-07-01 =
* AUI 0.2.51 & SD 1.2.33 - CHANGED

= 1.4.18 - 2026-06-17 =
* Enhance capability validation within the Turnstile captcha to prevent unauthorized access - SECURITY

= 1.4.17 - 2026-06-17 =
* Turnstile captcha support for UWP Getresponse, Aweber, Constant Contact, Newsletter, Active Campaign, and Campaign Monitor addon forms - ADDED

= 1.4.16 - 2026-04-02 =
* WordPress 7.0 compatibility - COMPATIBILITY

= 1.4.15 - 2026-01-22 =
* Merge AUI 0.2.43, SD 1.2.31 & AyeCode Connect Helper 1.0.5 - CHANGED

= 1.4.14 - 2025-12-04 =
* Remove unused plugin array elements from API calls to prevent issues with servers with low max_input_vars - FIXED

= 1.4.13 - 2025-10-16 =
* Turnstile captcha support for UWP Active Campaign addon forms - ADDED
* Turnstile captcha support for UWP Brevo addon forms - ADDED

= 1.4.12 - 2025-09-29 =
* Disable turnstile captcha on GetPaid Checkout Form is not working - FIXED

= 1.4.11 - 2025-09-11 =
* Set English as a default language for the support user - CHANGED
* Turnstile captcha support for UWP MailPoet addon forms - ADDED
* Turnstile captcha support for UWP MailChimp addon forms - ADDED

= 1.4.10 - 2025-08-28 =
* Turnstile captcha is not working on WPS Hide Login page - FIXED
* Shows warning for mailerlite Turnstile captcha - FIXED

= 1.4.9 - 2025-08-07 =
* Site auto disconnected when url contains www. - FIXED
* Turnstile captcha support for UWP Mailerlite addon forms - ADDED

= 1.4.8 - 2025-05-28 =
* Allow links to documentation in error responses - CHANGED
* New support widget, removing 3rd party scripts and adding link to view all your tickets - CHANGED

= 1.4.7 - 2025-03-13 =
* Added turnstile support for GeoDirectory Pay Per Lead addon - ADDED

= 1.4.6 - 2025-03-06 =
* Backend user page "Send Reset Link" button not working due to turnstile check - FIXED
* Enhance timeout error logging during demo site import - CHANGED
* Auto login fails when Auto Approve + Auto Login enabled in UWP register - FIXED

= 1.4.5 - 2025-02-06 =
* Captcha don't render on Turnstile setting page when disabled for admin role - FIXED

= 1.4.4 - 2025-01-27 =
* Cloned staging site modifies the connected site url - FIXED
* Option added to validate Turnstile api keys - ADDED
* Staging sites can look connected when not authorised, now auto disconnected on authorisation fail - CHANGED
* Verify keys not working for interactive captcha - FIXED

= 1.4.2 - 2024-12-20 =
* Turnstile protection switches not indicating off value - FIXED

= 1.4.1 - 2024-12-16 =
* SuperDuper Class includes file missing from last update - FIXED

= 1.4.0 - 2024-12-12 =
* Cloudflare Turnstile Captcha feature (supports all AyeCode products) - ADDED

= 1.3.9 - 2024-11-18 =
* MU Helper plugin ajax call missing nonce check - FIXED

= 1.3.8 - 2024-11-12 =
* Composer packages updated - CHANGED

= 1.3.7 - 2024-10-10 =
* WPMU plugin install fix sometimes fails to install - IMPROVED

= 1.3.6 - 2024-09-12 =
* WP Nav block get_pages() function updated to use SD version for better memory use - CHANGED

= 1.3.5 - 2024-09-03 =
* Import on fresh site broken when import data contains UsersWP plugin - FIXED

= 1.3.4 - 2024-08-12 =
* Sometimes MU plugin install shows class WP_Filesystem_Base not found - FIXED
* Better debugging info - ADDED
* Nav block not showing without GD addon - FIXED

= 1.3.2 - 2024-07-17 =
* Super Duper lib updated to latest - UPDATED

= 1.3.1 - 2024-07-16 =
* BootStrap 5 compatibility changes - CHANGED
* Show message when plugin not installed due to inactive licence - CHANGED

= 1.3.0 - 2024-07-02 =
* Import demo import - CHANGED
* Demo Import screen improvements - CHANGED

= 1.2.19 - 2024-06-06 =
* Function auto_detect_line_endings is deprecated - FIXED
* Support user auto expiry time extended from 3 > 7 days - CHANGED
* Added AyeNav block which allows GeoDirectory and UsesWP dynamic menu items to be added to the core WP Navigation block - ADDED

= 1.2.18 - 2024-01-29 =
* AUI Updated to latest version - CHANGED

= 1.2.17 - 2023-12-14 =
* Update textdomain - CHANGED

= 1.2.16 =
* Loco translate can cause connected site to disconnect - FIXED

= 1.2.15 =
* PHP deprecated notice "Creation of dynamic property" - FIXED

= 1.2.14 =
* Changes for upcoming Bootstrap v5 option - ADDED

= 1.2.12 =
* Spelling mistake error which could prevent GetPaid extensions showing correctly - FIXED

= 1.2.11 =
* Persistent Object cache plugins can make connection fail - FIXED
* Changes to allow for event tickets demo import - ADDED
* More debugging calls added - ADDED

= 1.2.10 =
* Added strip/replace functionality to demo content to prevent Mod Security blocking some demo imports - ADDED

= 1.2.9 =
* Added warning if coming soon plugin detected that connection might not work - ADDED
* Some servers limit the POST parameters which can cause some licenses not to sync - FIXED

= 1.2.8 =
* Added constant to be able to disable SSL verify for servers that fail this check - ADDED
* Better error debugging functionality - ADDED

= 1.2.7 =
* Some reports of 401 errors on connection for access keys with capital letters - FIXED

= 1.2.6 =
* get_plugins() might be undefined in sync_licenses call in some servers - FIXED
* Added the ability to debug remote calls if constant is defined - ADDED
* Removed double sanitization and extra sanitization in some functions - CHANGED/ADDED
* Readme text clarified at the request of the plugin review team - CHANGED

= 1.2.5 =
* Prevent GD Social Importer activation redirect on import - FIXED

= 1.2.4 =
* Fix PHP Non-static method error - FIXED
* Non-static method AyeCode_Demo_Content::prevent_redirects() should not be called statically - FIXED

= 1.2.3 =
* Demo import not always preventing plugin activation re-direct which can cause first import to fail - FIXED
* Demo import can now open demo import screen via direct URL link - ADDED

= 1.2.2 =
* Demo import might not create the menu if menu with same name already exists - FIXED
* Demo import category images not removed when new demo imported - FIXED
* Demo importer added support for elementor pro imports - ADDED
* Demo importer added support for Kadence theme imports - ADDED
* Demo importer now places old template pages in trash instead of fully deleting - CHANGED

= 1.2.1 =
* AyeCode UI now only loads on specified screen_ids so we add our screen ids - FIXED

= 1.2.0 =
* One click demo import option added for connected users - ADDED
* Licenses now auto sync when a new plugin or theme is installed - ADDED
* Settings now moved to their own admin settings item so we can have sub items - CHANGED

= 1.1.8 =
* Multisite undefined function wpmu_delete_user() issue - FIXED

= 1.1.7 =
* WP 5.5 requires API permissions callback param - ADDED

= 1.1.6 =
* CloudFlare can cause our server validation methods to fail resulting in licenses not being added - FIXED
* Stored keys will be cleared when deactivating 'One click addon installs' - CHANGED

= 1.1.5 =
* WPML dynamic URL change can disconnect a site - FIXED
* Warning added if another plugin may be calling the get_plugins() function too early in which case we can install a must use plugin to try and resolve - ADDED

= 1.1.4 =
* License sync now checks if site_id and site_url are correct and will work before syncing - CHANGED
* Detect and disconnect if site_url changes and invalidates licences - ADDED

= 1.1.3 =
* Support user on network not able to access all plugin settings - FIXED
* Max API timeout changed from 10 to 20 seconds - CHANGED
* When the website URL changes a notice will show asking to re-connect the new URL - ADDED

= 1.1.2 =
* WP_DEBUG being active can affect initial connection - FIXED

= 1.1.1 =
* If support user not set PHP Notice can show if debugging enabled - FIXED
* Remove support user if plugin deactivated - ADDED
* Remove support user immediately if site disconnected - CHANGED

= 1.1.0 =
* Support widget and live documentation search now available - ADDED
* Temporary Support User Access feature now available - ADDED

= 1.0.6 =
* Extensions screen can still request key if no addons installed on first sync - FIXED
* Small spelling mistakes - FIXED

= 1.0.5 =
* If switching a connected user account the license keys are not immediately updated - FIXED
* Deactivate and remove all licence keys when disconnecting a site - CHANGED

= 1.0.4 =
* Added connected notice when activating from product extensions page - ADDED
* Changes added to be able to detect if activating site is a network site - ADDED

= 1.0.3 =
* Added settings link to plugins page - ADDED

= 1.0.2 =
* First wp.org release - WOOHOO

= 1.0.1 =
* Warning added that localhost sites won't work - ADDED

= 1.0.0 =
* First release - YAY


= Resources used to build this plugin =

* Image for Demo Import Screen ( kadencewp-icon-dark.svg ), Copyright Kadence WP
  License: CC0 Public Domain
  Source: https://www.kadencewp.com/brand-assets/

* Image for Demo Import Screen ( blockstrap-logo.jpg ), Copyright AyeCode Ltd
  License: CC0 Public Domain
  Source: https://ayecode.io/

* Image for Connection Screen ( connect-site.png ), Copyright AyeCode Ltd
  License: CC0 Public Domain
  Source: https://ayecode.io/

* Image for Plugins screens ( ayeccode.png ), Copyright AyeCode Ltd
  License: CC0 Public Domain
  Source: https://ayecode.io/

* Image for Plugins screens ( ayeccode.svg ), Copyright AyeCode Ltd
  License: CC0 Public Domain
  Source: https://ayecode.io/

* Images for Support Popup ( team*.jpg ), Copyright AyeCode Ltd
  License: CC0 Public Domain
  Source: https://ayecode.io/