WC_Data_Store_WP::prefix_key( string $key )
Internal meta keys we don’t want exposed as part of meta_data. This is in addition to all data props with _ prefix.
Description Description
Parameters Parameters
- $key
-
(Required) Prefix to be added to meta keys.
Return Return
(string)
Source Source
File: includes/data-stores/class-wc-data-store-wp.php
protected function prefix_key( $key ) {
return '_' === substr( $key, 0, 1 ) ? $key : '_' . $key;
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |