get_category_to_edit()WP 2.0.0

Gets category object for given ID and 'edit' filter context.

No Hooks.

Return

Object.

Usage

get_category_to_edit( $id );
$id(int) (required)
-

Changelog

Since 2.0.0 Introduced.

get_category_to_edit() code WP 6.5.4

function get_category_to_edit( $id ) {
	$category = get_term( $id, 'category', OBJECT, 'edit' );
	_make_cat_compat( $category );
	return $category;
}