首页 WordPress函数大全 get_term_to_edit()

get_term_to_edit()

2020-05-01 / 5904阅 / 悠然

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

get_term_to_edit( int|object $id, string $taxonomy )

Sanitizes Term for editing.

描述

Return value is sanitize_term() and usage is for sanitizing the term for editing. Function is for contextual and simplicity.

参数

$id

(int|object)
(Required)
Term ID or object.

$taxonomy

(string)
(Required)
Taxonomy name.

返回

(string|int|null|WP_Error) Will return empty string if $term is not an object.

大家谈论
    我的见解