WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/xmlrpc getpostcategory

Description

Retrieve the post category or categories from XMLRPC XML.

If the category element is not found, then the default post category will be used. The return type then would be what $post_default_category. If the category is found, then it will always be an array.

Usage

<?php xmlrpc_getpostcategory$content ); ?>

Parameters

$content
(string) (required) XMLRPC XML Request content
Default: None

Return Values

(string|array) 
List of categories or category name.

Examples

Notes

  • Uses global: (unknown) $post_default_category

Change Log

Since: 0.71

Source File

xmlrpc_getpostcategory() is located in wp-includes/functions.php.

Related

See also index of Function Reference and index of Template Tags.