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
375                get_edit_term_link( $tag->term_id, $taxonomy, $this->screen->post_type )
376           );
377
378           $out = '<strong><a class="row-title" href="' . esc_url( $edit_link ) . '" title="' . esc_attr( sprintf( __( 'Edit &#8220;%s&#8221;' ), $name ) ) . '">' . $name . '</a></strong><br />';
379
380           $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
381           $out .= '<div class="name">' . $qe_data->name . '</div>';
382
383           /** This filter is documented in wp-admin/edit-tag-form.php */
384           $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>';
385           $out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
386
387           return $out;
388      }
389
390      /**
391       * Gets the name of the default primary column.
392       *
393       * @since 4.3.0
 
Line Code
473           return $tag->description;
474      }
475
476      /**
477       * @param object $tag
478       * @return string
479       */
480      public function column_slug( $tag ) {
481           /** This filter is documented in wp-admin/edit-tag-form.php */
482           return apply_filters( 'editable_slug', $tag->slug, $tag );
483      }
484
485      /**
486       * @param object $tag
487       * @return string
488       */
489      public function column_posts( $tag ) {
490           $count = number_format_i18n( $tag->count );
491