Skip to content

Instantly share code, notes, and snippets.

@dancameron
Created November 26, 2018 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancameron/f85d828d82772e6a6826c589ca921eb5 to your computer and use it in GitHub Desktop.
Save dancameron/f85d828d82772e6a6826c589ca921eb5 to your computer and use it in GitHub Desktop.
Filter Beacon for Help Scout Desk
<?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