Remove links to league and season archives

This commit is contained in:
Brian Miyaji
2014-06-26 15:49:06 +10:00
parent 4cbf80fdcd
commit 2f6c8a6b8d

View File

@@ -239,6 +239,15 @@ function sportspress_team_permalink( $permalink, $post ) {
}
add_filter( 'post_type_link', 'sportspress_team_permalink', 10, 2 );
function sportspress_no_terms_links( $term_list, $taxonomy ) {
if ( in_array( $taxonomy, array( 'sp_league', 'sp_season' ) ) )
return wp_filter_nohtml_kses( $term_list );
return $term_list;
}
add_filter( 'the_terms', 'sportspress_no_terms_links', 10, 2 );
function sportspress_pre_get_posts( $query ) {
if ( is_admin() ):