WordPress at Your Fingertips
function is not described

get_category_to_edit() WP 2.0.0

Get 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.

Code of get_category_to_edit() WP 5.8.2

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