Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: editable_slug

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

This hook occurs 2 times in this file.

Line Code
336            * @param object $tag     Term object.
337            */
338           $actions = apply_filters( "{$taxonomy}_row_actions", $actions, $tag );
339
340           $out .= $this->row_actions( $actions );
341           $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
342           $out .= '<div class="name">' . $qe_data->name . '</div>';
343
344           /** This filter is documented in wp-admin/edit-tag-form.php */
345           $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
346           $out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
347
348           return $out;
349      }
350
351      public function column_description( $tag ) {
352           return $tag->description;
353      }
354
355      public function column_slug( $tag ) {
356           /** This filter is documented in wp-admin/edit-tag-form.php */
357           return apply_filters( 'editable_slug', $tag->slug );
358      }
359
360      public function column_posts( $tag ) {
361           $count = number_format_i18n( $tag->count );
362
363           $tax = get_taxonomy( $this->screen->taxonomy );
364
365           $ptype_object = get_post_type_object( $this->screen->post_type );
366           if ( ! $ptype_object->show_ui )