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
360           $qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' );
361           $edit_link = esc_url( get_edit_term_link( $tag->term_id, $taxonomy, $this->screen->post_type ) );
362
363           $out = '<strong><a class="row-title" href="' . $edit_link . '" title="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $name ) ) . '">' . $name . '</a></strong><br />';
364
365           $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
366           $out .= '<div class="name">' . $qe_data->name . '</div>';
367
368           /** This filter is documented in wp-admin/edit-tag-form.php */
369           $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug ) . '</div>';
370           $out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
371
372           return $out;
373      }
374
375      /**
376       * Gets the name of the default primary column.
377       *
378       * @since 4.3.0
 
Line Code
452           return $tag->description;
453      }
454
455      /**
456       * @param object $tag
457       * @return string
458       */
459      public function column_slug( $tag ) {
460           /** This filter is documented in wp-admin/edit-tag-form.php */
461           return apply_filters( 'editable_slug', $tag->slug );
462      }
463
464      /**
465       * @param object $tag
466       * @return string
467       */
468      public function column_posts( $tag ) {
469           $count = number_format_i18n( $tag->count );
470