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
381                /* translators: %s: taxonomy term name */
382                esc_attr( sprintf( __( '“%s” (Edit)' ), $tag->name ) ),
383                $name
384           );
385
386           $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
387           $out .= '<div class="name">' . $qe_data->name . '</div>';
388
389           /** This filter is documented in wp-admin/edit-tag-form.php */
390           $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>';
391           $out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
392
393           return $out;
394      }
395
396      /**
397       * Gets the name of the default primary column.
398       *
399       * @since 4.3.0
 
Line Code
504           return $tag->description;
505      }
506
507      /**
508       * @param object $tag
509       * @return string
510       */
511      public function column_slug( $tag ) {
512           /** This filter is documented in wp-admin/edit-tag-form.php */
513           return apply_filters( 'editable_slug', $tag->slug, $tag );
514      }
515
516      /**
517       * @param object $tag
518       * @return string
519       */
520      public function column_posts( $tag ) {
521           $count = number_format_i18n( $tag->count );
522