Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: term_name

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

Line Code
355            * current level in the term hierarchy.
356            *
357            * @since 2.5.0
358            *
359            * @see WP_Terms_List_Table::column_name()
360            *
361            * @param string $pad_tag_name The term name, padded if not top-level.
362            * @param WP_Term $tag         Term object.
363            */
364           $name = apply_filters( 'term_name', $pad . ' ' . $tag->name, $tag );
365
366           $qe_data = get_term( $tag->term_id, $taxonomy, OBJECT, 'edit' );
367
368           $uri = wp_doing_ajax() ? wp_get_referer() : $_SERVER['REQUEST_URI'];
369
370           $edit_link = add_query_arg(
371                'wp_http_referer',
372                urlencode( wp_unslash( $uri ) ),
373                get_edit_term_link( $tag->term_id, $taxonomy, $this->screen->post_type )