Created
November 26, 2018 15:44
-
-
Save dancameron/f85d828d82772e6a6826c589ca921eb5 to your computer and use it in GitHub Desktop.
Filter Beacon for Help Scout Desk
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 // don't include this line in your functions.php, since it already starts with it. | |
function hsd_filter_beacon() { | |
if ( is_page( array( 1, 2, 3 ) ) ) { | |
remove_action( 'wp_footer', array( 'HSD_Beacon', 'add_beacon' ) ); | |
} | |
} | |
add_action( 'pre_get_posts', 'hsd_filter_beacon' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment