terms_to_edit
Filters the comma-separated list of terms available to edit.
Usage
add_filter( 'terms_to_edit', 'wp_kama_terms_to_edit_filter', 10, 2 );
/**
* Function for `terms_to_edit` filter-hook.
*
* @param string $terms_to_edit A comma-separated list of term names.
* @param string $taxonomy The taxonomy name for which to retrieve terms.
*
* @return string
*/
function wp_kama_terms_to_edit_filter( $terms_to_edit, $taxonomy ){
// filter...
return $terms_to_edit;
}
- $terms_to_edit(string)
- A comma-separated list of term names.
- $taxonomy(string)
- The taxonomy name for which to retrieve terms.
Changelog
| Since 2.8.0 | Introduced. |
Where the hook is called
terms_to_edit
wp-admin/includes/taxonomy.php 295
$terms_to_edit = apply_filters( 'terms_to_edit', $terms_to_edit, $taxonomy );