get_category_to_edit

Advertisement

Summery Summery

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

Syntax Syntax

get_category_to_edit( int $id )

Parameters Parameters

$id

(int) (Required)

Return Return

(object)

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.