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.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/data-stores/class-wc-data-store-wp.php

	protected function prefix_key( $key ) {
		return '_' === substr( $key, 0, 1 ) ? $key : '_' . $key;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.