Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: xmlrpc_prepare_term

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
565           // For Intergers which may be largeer than XMLRPC supports ensure we return strings.
566           $_term['term_id'] = strval( $_term['term_id'] );
567           $_term['term_group'] = strval( $_term['term_group'] );
568           $_term['term_taxonomy_id'] = strval( $_term['term_taxonomy_id'] );
569           $_term['parent'] = strval( $_term['parent'] );
570
571           // Count we are happy to return as an Integer because people really shouldn't use Terms that much.
572           $_term['count'] = intval( $_term['count'] );
573
574           return apply_filters( 'xmlrpc_prepare_term', $_term, $term );
575      }
576
577      /**
578       * Convert a WordPress date string to an IXR_Date object.
579       *
580       * @access protected
581       *
582       * @param string $date
583       * @return IXR_Date