Replies: 0
We’re running into an issue with WordFence where it’s blocking some of the requests made by Beaver Builder because of false positives. I know it’s possible to whitelist exceptions but that is pretty cumbersome for our users.
Is it possible for us to dynamically whitelist requests that are sent while the builder is active? I had a look at your docs and saw wordfence::whitelistIP. Would something like this be ok or is there a better solution?
function wf_whitelist_bb() {
if ( class_exists( 'wordfence' ) && FLBuilderModel::is_builder_active() ) {
wordfence::whitelistIP( $_SERVER['REMOTE_ADDR'] );
}
}
add_action( 'init', 'wf_whitelist_bb' );
Thanks for your help!
-
This topic was modified 9 minutes ago by
Justin Busa.
-
This topic was modified 8 minutes ago by
Justin Busa.