Add 'get_the_terms' filter. Props filosofo. Fixes #15410
git-svn-id: https://develop.svn.wordpress.org/trunk@16342 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
958d135e11
commit
a2dfe18dfd
@ -1064,6 +1064,8 @@ function get_the_terms( $id = 0, $taxonomy ) {
|
||||
if ( false === $terms )
|
||||
$terms = wp_get_object_terms( $id, $taxonomy );
|
||||
|
||||
$terms = apply_filters( 'get_the_terms', $terms, $id, $taxonomy );
|
||||
|
||||
if ( empty( $terms ) )
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user