Skip to content

Instantly share code, notes, and snippets.

@chaselivingston
Last active August 29, 2015 14:18
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 chaselivingston/26ecf25089417e84e7ca to your computer and use it in GitHub Desktop.
Save chaselivingston/26ecf25089417e84e7ca to your computer and use it in GitHub Desktop.
function cl_disable_carousel() {
$id = url_to_postid( "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] );
$disable = false;
if ($id == 67) {
$disable = true;
}
return $disable;
}
add_filter('jp_carousel_maybe_disable', 'cl_disable_carousel');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment