WP_Post_Type::reset_default_labels() WordPress Method
The WP_Post_Type::reset_default_labels() method is used to reset all the default labels for a given post type to their original values. This is useful if you've changed the labels for a post type and want to reset them back to the defaults.
WP_Post_Type::reset_default_labels() #
Resets the cache for the default labels.
Source
File: wp-includes/class-wp-post-type.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. |