Retrieves the post category or categories from XML-RPC XML.
Description
If the category element is not found in the XML, the default post category from the $post_default_category global will be used instead.The return type will then be a string. If the category element is found, the return type will be an array.
Parameters
$contentstring
XML-RPC XML Request content.
Return
string[]|string
An array of category names or default category name.
Signature, return type and hooks compared across 5 parsed releases.
6.9.7
Return type changed from string|array to string[]|string.verified against source
0.71
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.