hook before they are serialized and sent to the server. * * @access public * * @param array $args The hook parameters. * @return array $args The expanded hook parameters. */ public function expand_term_taxonomy_id( $args ) { list( $term_taxonomy_ids, $previous_end ) = $args; return array( 'terms' => get_terms( array( 'hide_empty' => false, 'term_taxonomy_id' => $term_taxonomy_ids, 'orderby' => 'term_taxonomy_id', 'order' => 'DESC', ) ), 'previous_end' => $previous_end, ); } /** * Gets a term object based on a given row from the term_relationships database table. * * @access public * * @param object $relationship A row object from the term_relationships table. * @return object|bool A term object, or false if term taxonomy doesn't exist. */ public function expand_terms_for_relationship( $relationship ) { return get_term_by( 'term_taxonomy_id', $relationship->term_taxonomy_id ); } }