woocommerce_privacy_remove_order_personal_data_meta_value

woocommerce_privacy_remove_order_personal_data_meta_value

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_privacy_remove_order_personal_data_meta_value') is found 1 times:

  • /includes/class-wc-privacy-erasers.php line 329
    				 * @param string   $value Current value of the data.
    				 * @param string   $data_type Type of data.
    				 * @param WC_Order $order An order object.
    				 */
    				$anon_value = apply_filters( 'woocommerce_privacy_remove_order_personal_data_meta_value', $anon_value, $meta_key, $value, $data_type, $order );
    
    				if ( $anon_value ) {
    					$order->update_meta_data( $meta_key, $anon_value );
    				} else {
    					$order->delete_meta_data( $meta_key );
    				}