Created
June 28, 2023 20:01
-
-
Save pstoute/6fb8d4a600916d5cce3c1e08a4dfd2c9 to your computer and use it in GitHub Desktop.
This must use plugin gets added to the /wp-content/mu-plugins directory and requires no configuration to allow the fortress 2fa pages to display all by setting the gravity forms force hooks js output to false on pages including /snicco-fortress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: GridPane Fortress - UABB Gravity Forms Styler Override | |
* Description: This must use plugin overrides the Ultimate Addons forced filter to return false on fortress related pages. | |
* Version: 1.0 | |
* Author: Stoute Web Solutions | |
* Author URI: https://stoutewebsolutions.com/ | |
* Plugin URI: https://community.gridpane.com/t/ultimate-addons-for-beaver-builder-breaks-fortress-2fa-page-third-party/3333/80 | |
*/ | |
if(str_contains($_SERVER['REQUEST_URI'], '/snicco-fortress')) { | |
add_filter( 'gform_force_hooks_js_output', fn () => false , PHP_INT_MAX); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment