首页 WordPress函数大全 get_the_category_by_ID()

get_the_category_by_ID()

2020-05-01 / 4504阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_the_category_by_ID( int $cat_ID )

Retrieve category name based>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

参数

$cat_ID

(int)
(Required)
Category ID.

返回

(string|WP_Error) Category name>WP_Error on failure.

大家谈论
    我的见解