WP_CLI
Inflector::reset
Clears Inflectors inflected value caches, and resets the inflection rules to the initial values.
Method of the class: Inflector{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Inflector::reset();
Inflector::reset() Inflector::reset code WP-CLI 2.13.0-alpha
public static function reset() {
if ( empty( self::$initial_state ) ) {
self::$initial_state = get_class_vars( 'Inflector' );
return;
}
foreach ( self::$initial_state as $key => $val ) {
if ( 'initial_state' !== $key ) {
self::${$key} = $val;
}
}
}