apply_filters( 'terms_to_edit', string $terms_to_edit, string $taxonomy )

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

Description

See also

Parameters

$terms_to_edit

(string) A comma-separated list of term names.

$taxonomy

(string) The taxonomy name for which to retrieve terms.

More Information

  • This filter is used to modify the CSV of terms that is used to show active terms in the taxonomy sidebars on the edit post screen.
  • This is primarily of use if you need to visually modify the appearance of an active term (such as prefixing an asterisk) without changing its behavior. Note that the returned CSV is filtered using JavaScript and is rendered in plain text, so wrapping terms in HTML will not work (any HTML will be rendered as text).

Source

File: wp-admin/includes/taxonomy.php

View on Trac

Changelog

Version Description
2.8.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/terms_to_edit