diff --git src/wp-includes/taxonomy.php src/wp-includes/taxonomy.php
index 5b1acb4fc6..9776627a5c 100644
|
|
function get_term_by( $field, $value, $taxonomy = '', $output = OBJECT, $filter |
1066 | 1066 | return false; |
1067 | 1067 | } |
1068 | 1068 | |
| 1069 | /** |
| 1070 | * Filters the terms query arguments when initiated by get_term_by(). |
| 1071 | * |
| 1072 | * @since 5.9.0 |
| 1073 | * |
| 1074 | * @param array $args An array of get_terms() arguments. |
| 1075 | */ |
| 1076 | $args = apply_filters( 'get_term_by_args', $args ); |
| 1077 | |
1069 | 1078 | $terms = get_terms( $args ); |
1070 | 1079 | if ( is_wp_error( $terms ) || empty( $terms ) ) { |
1071 | 1080 | return false; |