Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: get_terms_args

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1313
1314      /**
1315       * Filter the terms query arguments.
1316       *
1317       * @since 3.1.0
1318       *
1319       * @param array        $args       An array of arguments.
1320       * @param string|array $taxonomies A taxonomy or array of taxonomies.
1321       */
1322      $args = apply_filters( 'get_terms_args', $args, $taxonomies );
1323
1324      extract($args, EXTR_SKIP);
1325
1326      if ( $child_of ) {
1327           $hierarchy = _get_term_hierarchy( reset( $taxonomies ) );
1328           if ( ! isset( $hierarchy[ $child_of ] ) )
1329                return $empty_array;
1330      }
1331