get_category_to_edit( int $id )

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

Parameters Parameters


(int) (Required)

Top ↑

Return Return


Top ↑

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

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.