Uses
Uses | Description |
---|---|
wp-includes/category.php: _make_cat_compat() | Updates category structure to old pre-2.3 from new taxonomy structure. |
wp-includes/taxonomy.php: get_term() | Get all Term data from database by Term ID. |
Get category object for given ID and ‘edit’ filter context.
(int) (Required)
(object)
File: wp-admin/includes/taxonomy.php
function get_category_to_edit( $id ) { $category = get_term( $id, 'category', OBJECT, 'edit' ); _make_cat_compat( $category ); return $category; }
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_category_to_edit