WP_Taxonomy::reset_default_labels() WordPress Method
The WP_Taxonomy::reset_default_labels() function allows you to reset the default labels for a given taxonomy. This can be useful when you want to change the labels for a taxonomy without having to update all of the instances of that taxonomy.
WP_Taxonomy::reset_default_labels() #
Resets the cache for the default labels.
Source
File: wp-includes/class-wp-taxonomy.php
public static function reset_default_labels() {
self::$default_labels = array();
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |