… your theme.
Do not add this to your parent theme’s functions.php directly. A theme update will overwrite your changes.
Important Considerations
This code only disables path security (URL rewriting) for the specified roles. The firewall, brute force protection, 2FA, security headers, and all other WP Ghost features remain active for everyone, including the roles listed in the code. If you need to disable everything for a specific IP, use the IP Whitelist with “Allow Everything” level instead.
The code runs on , which means it only applies to frontend page loads. Admin dashboard (wp-admin) behavior is not …