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
398           $out = sprintf(
399                '<strong>%s</strong><br />',
400                $name
401           );
402
403           $out .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
404           $out .= '<div class="name">' . $qe_data->name . '</div>';
405
406           /** This filter is documented in wp-admin/edit-tag-form.php */
407           $out .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>';
408           $out .= '<div class="parent">' . $qe_data->parent . '</div></div>';
409
410           return $out;
411      }
412
413      /**
414       * Gets the name of the default primary column.
415       *
416       * @since 4.3.0
 
Line Code
521           }
522      }
523
524      /**
525       * @param WP_Term $tag Term object.
526       * @return string
527       */
528      public function column_slug( $tag ) {
529           /** This filter is documented in wp-admin/edit-tag-form.php */
530           return apply_filters( 'editable_slug', $tag->slug, $tag );
531      }
532
533      /**
534       * @param WP_Term $tag Term object.
535       * @return string
536       */
537      public function column_posts( $tag ) {
538           $count = number_format_i18n( $tag->count );
539