首页 WordPress函数大全 register_term_meta()

register_term_meta()

2020-05-02 / 1903阅 / 悠然

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

register_term_meta( string $taxonomy, string $meta_key, array $args )

为条款注册一个元密钥。

描述

参数

$taxonomy

(string)
(Required)
Taxonomy to register a meta key for. Pass an empty string to register the meta key across all existing taxonomies.

$meta_key

(string)
(Required)
The meta key to register.

$args

(array)
(Required)
Data used to describe the meta key when registered. See register_meta() for a list of supported arguments.

返回

(bool) True if the meta key was successfully registered, false if not.

大家谈论
    我的见解