wpseek.com
A WordPress-centric search engine for devs and theme authors



get_category_to_edit › WordPress Function

Since2.0.0
Deprecatedn/a
get_category_to_edit ( $id )
Parameters:
  • (int) $id
    Required: Yes
Returns:
  • (object)
Defined at:
Codex:

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



Source

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