W3cubDocs

/WordPress

get_category_to_edit( int $id )

Get category object for given ID and ‘edit’ filter context.

Parameters

$id

(int) (Required)

Return

(object)

Source

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;
}

Changelog

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