首页 WordPress函数大全 get_cat_ID()

get_cat_ID()

2020-05-01 / 5517阅 / 悠然

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

get_cat_ID( string $cat_name )

Retrieve the ID of a category from its name.

描述

参数

$cat_name

(string)
(Required)
Category name.

返回

(int) 0, if failure and ID of category on success.

大家谈论
    我的见解