woocommerce_privacy_erase_order_personal_data

woocommerce_privacy_erase_order_personal_data

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

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_privacy_erase_order_personal_data') is found 1 times:

  • /includes/class-wc-privacy-erasers.php line 139
    		$orders = wc_get_orders( $order_query );
    
    		if ( 0 < count( $orders ) ) {
    			foreach ( $orders as $order ) {
    				if ( apply_filters( 'woocommerce_privacy_erase_order_personal_data', $erasure_enabled, $order ) ) {
    					self::remove_order_personal_data( $order );
    
    					/* Translators: %s Order number. */
    					$response&#91;'messages'&#93;&#91;&#93;    = sprintf( __( 'Removed personal data from order %s.', 'woocommerce' ), $order->get_order_number() );
    					$response['items_removed'] = true;
    				} else {