Skip to content

Instantly share code, notes, and snippets.

@pmgllc
Forked from MZAWeb/gist:5122874
Created July 5, 2013 16:10
Show Gist options
  • Save pmgllc/5935567 to your computer and use it in GitHub Desktop.
Save pmgllc/5935567 to your computer and use it in GitHub Desktop.
<?php
add_filter( 'the_content', 'remove_breadcrum', 0 );
add_filter( 'the_content', 'add_breadcrum', 1000 );
function remove_breadcrum( $content ) {
add_filter( 'bbp_no_breadcrumb', '__return_true' );
return $content;
}
function add_breadcrum( $content ) {
remove_filter( 'bbp_no_breadcrumb', '__return_true' );
return $content;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment