Codex tools: Log in
Methods related to categories and tags. As of WordPress 3.4, clients should prefer methods from the Taxonomies component.
Contents |
Retrieve list of categories.
As of WordPress 3.4, it is preferable to use the wp.getTerms method, with category as the taxonomy_name parameter.
Retrieve list of categories that start with a given string.
Added in WordPress 2.2.
As of WordPress 3.4, it is preferable to use the wp.getTerms method, with category as the taxonomy_name parameter and the category prefix as the search parameter.
Create a category.
Added in WordPress 2.2.
As of WordPress 3.4, it is preferable to use the wp.newTerm method, with category as the taxonomy_name parameter.
Delete an existing category.
Added in WordPress 2.5.
As of WordPress 3.4, it is preferable to use the wp.deleteTerm method, with category as the taxonomy_name parameter.
Retrieve list of all tags.
Added in WordPress 2.7.
As of WordPress 3.4, it is preferable to use the wp.getTerms method, with post_tag as the taxonomy_name parameter.