Warning: This function has been deprecated. Use get_cat_name() instead.

get_catname() WordPress Function

The get_catname() function is used to retrieve the name of a category from its ID. This function can be useful when you need to display the name of a category on a WordPress site.

get_catname( int $cat_ID ) #

Retrieve the category name by the category ID.


Description

Top ↑

See also


Top ↑

Parameters

$cat_ID

(int)(Required)Category ID


Top ↑

Return

(string) category name


Top ↑

Source

File: wp-includes/deprecated.php

function get_catname( $cat_ID ) {
	_deprecated_function( __FUNCTION__, '2.8.0', 'get_cat_name()' );
	return get_cat_name( $cat_ID );
}


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Use get_cat_name()
0.71Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More