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