]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/taxonomy.php
WordPress 3.9
[autoinstalls/wordpress.git] / wp-admin / includes / taxonomy.php
index 87fe6e6d6738ba6a93e4f93d1d9b251b1ae363e6..2953765efb37136d92f27921288327848ee87f8c 100644 (file)
@@ -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;