Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: tags_to_edit

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
129      $tags = wp_get_post_tags($post_id);
130
131      if ( !$tags )
132           return false;
133
134      foreach ( $tags as $tag )
135           $tag_names[] = $tag->name;
136      $tags_to_edit = join( ', ', $tag_names );
137      $tags_to_edit = attribute_escape( $tags_to_edit );
138      $tags_to_edit = apply_filters( 'tags_to_edit', $tags_to_edit );
139      return $tags_to_edit;
140 }
141
142 function tag_exists($tag_name) {
143      return is_term($tag_name, 'post_tag');
144 }
145
146 function wp_create_tag($tag_name) {
147      if ( $id = tag_exists($tag_name) )