wp_update_term_data

过滤钩子


apply_filters( 'wp_update_term_data', $data, $term_id, $taxonomy, $args )
参数
  • (array)
    $data
    Term data to be updated.
    Required:
  • (int)
    $term_id
    Term ID.
    Required:
  • (string)
    $taxonomy
    Taxonomy slug.
    Required:
  • (array)
    $args
    Arguments passed to wp_update_term().
    Required:
定义位置
  • wp-includes/taxonomy.php
    , line 3271
引入
4.7.0
弃用

Filters term data before it is updated in the database.

$data = apply_filters( 'wp_update_term_data', $data, $term_id, $taxonomy, $args );