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
124      $tags = wp_get_post_tags($post_id);
125
126      if ( !$tags )
127           return false;
128
129      foreach ( $tags as $tag )
130           $tag_names[] = $tag->name;
131      $tags_to_edit = join( ', ', $tag_names );
132      $tags_to_edit = attribute_escape( $tags_to_edit );
133      $tags_to_edit = apply_filters( 'tags_to_edit', $tags_to_edit );
134      return $tags_to_edit;
135 }
136
137 function tag_exists($tag_name) {
138      return is_term($tag_name, 'post_tag');
139 }
140
141 function wp_create_tag($tag_name) {
142      if ( $id = tag_exists($tag_name) )