wp_update_term_data

wp_update_term_data

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_update_term_data') is found 1 times:

  • /wp-includes/taxonomy.php line 3349
    	 * @param int    $term_id  Term ID.
    	 * @param string $taxonomy Taxonomy slug.
    	 * @param array  $args     Arguments passed to wp_update_term().
    	 */
    	$data = apply_filters( 'wp_update_term_data', $data, $term_id, $taxonomy, $args );
    
    	$wpdb->update( $wpdb->terms, $data, compact( 'term_id' ) );
    
    	if ( empty( $slug ) ) {
    		$slug = sanitize_title( $name, $term_id );
    		$wpdb->update( $wpdb->terms, compact( 'slug' ), compact( 'term_id' ) );