pre_term_link

pre_term_link

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('pre_term_link') is found 1 times:

  • /wp-includes/taxonomy.php line 4664
    	 *
    	 * @param string  $termlink The permalink structure for the term's taxonomy.
    	 * @param WP_Term $term     The term object.
    	 */
    	$termlink = apply_filters( 'pre_term_link', $termlink, $term );
    
    	$slug = $term->slug;
    	$t    = get_taxonomy( $taxonomy );
    
    	if ( empty( $termlink ) ) {
    		if ( 'category' === $taxonomy ) {