WordPress at Your Fingertips
function is not described

WC_Post_Data::flush_object_meta_cache() public WC 1.0

Flush meta cache for CRUD objects on direct update.

{} It's a method of the class: WC_Post_Data{}

No Hooks.


null. Nothing.


$result = WC_Post_Data::flush_object_meta_cache( $meta_id, $object_id, $meta_key, $meta_value );
$meta_id(int) (required)
Meta ID.
$object_id(int) (required)
Object ID.
$meta_key(string) (required)
Meta key.
$meta_value(string) (required)
Meta value.

Code of WC_Post_Data::flush_object_meta_cache() WC 5.6.0

public static function flush_object_meta_cache( $meta_id, $object_id, $meta_key, $meta_value ) {
	WC_Cache_Helper::invalidate_cache_group( 'object_' . $object_id );