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
572           // For integers which may be larger than XML-RPC supports ensure we return strings.
573           $_term['term_id'] = strval( $_term['term_id'] );
574           $_term['term_group'] = strval( $_term['term_group'] );
575           $_term['term_taxonomy_id'] = strval( $_term['term_taxonomy_id'] );
576           $_term['parent'] = strval( $_term['parent'] );
577
578           // Count we are happy to return as an integer because people really shouldn't use terms that much.
579           $_term['count'] = intval( $_term['count'] );
580
581           return apply_filters( 'xmlrpc_prepare_term', $_term, $term );
582      }
583
584      /**
585       * Convert a WordPress date string to an IXR_Date object.
586       *
587       * @access protected
588       *
589       * @param string $date
590       * @return IXR_Date