get_tags_to_edit() WordPress Function

The get_tags_to_edit() function is used to retrieve the tags for a post that are ready to be edited. This function is typically used in the admin interface for editing posts.

get_tags_to_edit( int $post_id, string $taxonomy = 'post_tag' ) #

Get comma-separated list of tags available to edit.


Parameters

$post_id

(int)(Required)

$taxonomy

(string)(Optional) The taxonomy for which to retrieve terms.

Default value: 'post_tag'


Top ↑

Return

(string|false|WP_Error)


Top ↑

Source

File: wp-admin/includes/taxonomy.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.