Created
April 17, 2025 05:43
-
-
Save wplit/e228f4cf6b7269670e6effbb456889c9 to your computer and use it in GitHub Desktop.
prevent fluent support outputting all support portal JS on the front end
This file contains hidden or 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
add_action('wp_enqueue_scripts', function() { | |
// Only allow on /support page for logged-in users | |
if (!is_user_logged_in() || !is_page('support')) { | |
wp_dequeue_script('fluent-support/customer-portal'); | |
} | |
}, 999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment