pre_term_link

过滤钩子


apply_filters( 'pre_term_link', $termlink, $term )
参数
  • (string)
    $termlink
    The permalink structure for the term’s taxonomy.
    Required:
  • (WP_Term)
    $term
    The term object.
    Required:
定义位置
  • wp-includes/taxonomy.php
    , line 4583
引入
4.9.0
弃用

Filters the permalink structure for a term before token replacement occurs.

$termlink = apply_filters( 'pre_term_link', $termlink, $term );