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
416           $output = sprintf(
417                '<strong>%s</strong><br />',
418                $name
419           );
420
421           $output .= '<div class="hidden" id="inline_' . $qe_data->term_id . '">';
422           $output .= '<div class="name">' . $qe_data->name . '</div>';
423
424           /** This filter is documented in wp-admin/edit-tag-form.php */
425           $output .= '<div class="slug">' . apply_filters( 'editable_slug', $qe_data->slug, $qe_data ) . '</div>';
426           $output .= '<div class="parent">' . $qe_data->parent . '</div></div>';
427
428           return $output;
429      }
430
431      /**
432       * Gets the name of the default primary column.
433       *
434       * @since 4.3.0
 
Line Code
554           }
555      }
556
557      /**
558       * @param WP_Term $tag Term object.
559       * @return string
560       */
561      public function column_slug( $tag ) {
562           /** This filter is documented in wp-admin/edit-tag-form.php */
563           return apply_filters( 'editable_slug', $tag->slug, $tag );
564      }
565
566      /**
567       * @param WP_Term $tag Term object.
568       * @return string
569       */
570      public function column_posts( $tag ) {
571           $count = number_format_i18n( $tag->count );
572