Filter hook 'terms_to_edit'

in WP Core File wp-admin/includes/taxonomy.php at line 295

View Source

terms_to_edit

Filter Hook
Description
Filters the comma-separated list of terms available to edit.

Hook Information

File Location wp-admin/includes/taxonomy.php View on GitHub
Hook Type Filter
Line Number 295

Hook Parameters

Type Name Description
string $terms_to_edit A comma-separated list of term names.
string $taxonomy The taxonomy name for which to retrieve terms.

Usage Examples

Basic Usage
<?php
// Hook into terms_to_edit
add_filter('terms_to_edit', 'my_custom_filter', 10, 2);

function my_custom_filter($terms_to_edit, $taxonomy) {
    // Your custom filtering logic here
    return $terms_to_edit;
}

Source Code Context

wp-admin/includes/taxonomy.php:295 - How this hook is used in WordPress core
<?php
 290  	 * @see get_terms_to_edit()
 291  	 *
 292  	 * @param string $terms_to_edit A comma-separated list of term names.
 293  	 * @param string $taxonomy      The taxonomy name for which to retrieve terms.
 294  	 */
 295  	$terms_to_edit = apply_filters( 'terms_to_edit', $terms_to_edit, $taxonomy );
 296  
 297  	return $terms_to_edit;
 298  }
 299  
 300  /**

PHP Documentation

<?php
/**
	 * Filters the comma-separated list of terms available to edit.
	 *
	 * @since 2.8.0
	 *
	 * @see get_terms_to_edit()
	 *
	 * @param string $terms_to_edit A comma-separated list of term names.
	 * @param string $taxonomy      The taxonomy name for which to retrieve terms.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-admin/includes/taxonomy.php
Related Hooks

Related hooks will be displayed here in future updates.