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
415           $out = sprintf(
416                '<strong>%s</strong><br />',
417                $name
418           );
419
420           $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
421           $out .= '<div class="name">' . $qe_data->name . '</div>';
422
423           /** This filter is documented in wp-admin/edit-tag-form.php */
424           $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>';
425           $out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
426
427           return $out;
428      }
429
430      /**
431       * Gets the name of the default primary column.
432       *
433       * @since 4.3.0
 
Line Code
538           }
539      }
540
541      /**
542       * @param WP_Term $tag Term object.
543       * @return string
544       */
545      public function column_slug( $tag ) {
546           /** This filter is documented in wp-admin/edit-tag-form.php */
547           return apply_filters( 'editable_slug', $tag->slug, $tag );
548      }
549
550      /**
551       * @param WP_Term $tag Term object.
552       * @return string
553       */
554      public function column_posts( $tag ) {
555           $count = number_format_i18n( $tag->count );
556