Skip to content

Instantly share code, notes, and snippets.

@AlkoKod
AlkoKod / cross-login.php
Last active April 17, 2025 20:58 — forked from lynt-smitka/cross-login.php
WordPress cross-domain login system that auto-authenticates users across multiple Polylang language domains using secure AJAX calls.
<?php
/**
* Plugin Name: Polylang + Bricks Cross Domain usage
* Description: Enables automatic login across multiple domains and paths using Polylang with folder installation support
* Version: 1.1
* Author: Aleš Sýkora - forked from Vláďa Smitka - Lynt
*/
// Get site URLs from Polylang
#Exclude Files From Defer Js
You can follow the documentation from WP Rocket here - https://docs.wp-rocket.me/article/976-exclude-files-from-defer-js
##The FluentForms JS files are located in these two paths:
wp-content/plugins/fluentform/public/js
wp-content/plugins/fluentformpro/public/js
You can exclude them one by one or full JS folder.