From 0be6f6072a8249907ef0f7dd47d523af641d8d2c Mon Sep 17 00:00:00 2001 From: "Drew Jaynes (DrewAPicture)" Date: Mon, 24 Mar 2014 03:13:06 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/taxonomy.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/wp-admin/includes/taxonomy.php b/src/wp-admin/includes/taxonomy.php index 87fe6e6d67..2953765efb 100644 --- a/src/wp-admin/includes/taxonomy.php +++ b/src/wp-admin/includes/taxonomy.php @@ -233,6 +233,17 @@ function get_terms_to_edit( $post_id, $taxonomy = 'post_tag' ) { $tag_names[] = $tag->name; $tags_to_edit = join( ',', $tag_names ); $tags_to_edit = esc_attr( $tags_to_edit ); + + /** + * Filter the comma-separated list of terms available to edit. + * + * @since 2.8.0 + * + * @see get_terms_to_edit() + * + * @param array $tags_to_edit An array of terms. + * @param string $taxonomy The taxonomy for which to retrieve terms. Default 'post_tag'. + */ $tags_to_edit = apply_filters( 'terms_to_edit', $tags_to_edit, $taxonomy ); return $tags_to_edit;