get_tags_to_edit

函数


get_tags_to_edit ( $post_id, $taxonomy = 'post_tag' )
参数
  • (int)
    $post_id
    Required:
  • (string)
    $taxonomy
    Optional. The taxonomy for which to retrieve terms. Default ‘post_tag’.
    Required:
    Default: ‘post_tag’
返回值
  • (string|false|WP_Error)
定义位置
  • wp-admin/includes/taxonomy.php
    , line 247
引入
2.3.0
弃用

Gets comma-separated list of tags available to edit.

function get_tags_to_edit( $post_id, $taxonomy = 'post_tag' ) {
	return get_terms_to_edit( $post_id, $taxonomy );
}