函数原型
get_tags_to_edit( int $post_id, string $taxonomy = ‘post_tag’ ): string|false|WP_Error
函数描述
Gets comma-separated list of tags available to edit.
是否弃用
未弃用
函数参数
-
$post_id
int
Required -
$taxonomy
string
Optional - The taxonomy for which to retrieve terms. Default
'post_tag'.Default:
'post_tag'
函数返回值
string|false|WP_Error
函数位置
File: wp-admin/includes/taxonomy.php.
函数源码
function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
return get_terms_to_edit( $post_id, $taxonomy );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |

