Skip to content

Instantly share code, notes, and snippets.

@BinaryMoon
Created March 24, 2020 08:57
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 BinaryMoon/2af35a092608348229d23f64e1238dc1 to your computer and use it in GitHub Desktop.
Save BinaryMoon/2af35a092608348229d23f64e1238dc1 to your computer and use it in GitHub Desktop.
Disable Jetpack Breadcrumbs
<?php
/**
* Plugin Name: Disable Breadcrumbs.
* Plugin URI: https://prothemedesign.com
* Description: Automatically disable Jetpack breadcrumb module.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
*/
function ptd_disable_jetpack_breadcrumbs( $tools ) {
$key = array_search( 'theme-tools/site-breadcrumbs.php', $tools );
if ( $key ) {
unset( $tools[ $key ] );
}
return $tools;
}
add_filter( 'jetpack_tools_to_include', 'ptd_disable_jetpack_breadcrumbs' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment