WC_Product_Variation_Data_Store_CPT::exclude_internal_meta_keys()
Callback to remove unwanted meta data.
Method of the class: WC_Product_Variation_Data_Store_CPT{}
No Hooks.
Return
true|false
. false if excluded.
Usage
// protected - for code of main (parent) or child class $result = $this->exclude_internal_meta_keys( $meta );
- $meta(object) (required)
- Meta object.
WC_Product_Variation_Data_Store_CPT::exclude_internal_meta_keys() WC Product Variation Data Store CPT::exclude internal meta keys code WC 9.2.3
protected function exclude_internal_meta_keys( $meta ) { return ! in_array( $meta->meta_key, $this->internal_meta_keys, true ) && 0 !== stripos( $meta->meta_key, 'attribute_' ) && 0 !== stripos( $meta->meta_key, 'wp_' ); }