WC_Customer_Data_Store::exclude_internal_meta_keys()
Callback to remove unwanted meta data.
Method of the class: WC_Customer_Data_Store{}
No Hooks.
Return
true|false
.
Usage
// protected - for code of main (parent) or child class $result = $this->exclude_internal_meta_keys( $meta );
- $meta(object) (required)
- Meta object.
WC_Customer_Data_Store::exclude_internal_meta_keys() WC Customer Data Store::exclude internal meta keys code WC 9.4.2
protected function exclude_internal_meta_keys( $meta ) { global $wpdb; $table_prefix = $wpdb->prefix ? $wpdb->prefix : 'wp_'; return ! in_array( $meta->meta_key, $this->internal_meta_keys, true ) && 0 !== strpos( $meta->meta_key, '_woocommerce_persistent_cart' ) && 0 !== strpos( $meta->meta_key, 'closedpostboxes_' ) && 0 !== strpos( $meta->meta_key, 'metaboxhidden_' ) && 0 !== strpos( $meta->meta_key, 'manageedit-' ) && ! strstr( $meta->meta_key, $table_prefix ) && 0 !== stripos( $meta->meta_key, 'wp_' ); }