Skip to content

Commit 0be6f60

Browse files
committed
Inline documentation for hooks in wp-admin/includes/taxonomy.php.
Props kpdesign for the initial patch. Fixes #27433. git-svn-id: https://develop.svn.wordpress.org/trunk@27674 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7062f3c commit 0be6f60

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/wp-admin/includes/taxonomy.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,17 @@ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) {
233233
$tag_names[] = $tag->name;
234234
$tags_to_edit = join( ',', $tag_names );
235235
$tags_to_edit = esc_attr( $tags_to_edit );
236+
237+
/**
238+
* Filter the comma-separated list of terms available to edit.
239+
*
240+
* @since 2.8.0
241+
*
242+
* @see get_terms_to_edit()
243+
*
244+
* @param array $tags_to_edit An array of terms.
245+
* @param string $taxonomy The taxonomy for which to retrieve terms. Default 'post_tag'.
246+
*/
236247
$tags_to_edit = apply_filters( 'terms_to_edit', $tags_to_edit, $taxonomy );
237248

238249
return $tags_to_edit;

0 commit comments

Comments
 (0)