woocommerce_remove_order_personal_data

woocommerce_remove_order_personal_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_remove_order_personal_data') is found 2 times:

  • /includes/admin/list-tables/class-wc-admin-list-table-orders.php line 461
    			foreach ( $ids as $id ) {
    				$order = wc_get_order( $id );
    
    				if ( $order ) {
    					do_action( 'woocommerce_remove_order_personal_data', $order );
    					$changed++;
    				}
    			}
    		} elseif ( false !== strpos( $action, 'mark_' ) ) {
    			$order_statuses = wc_get_order_statuses();
    			$new_status     = substr( $action, 5 ); // Get the status name from action.
    
  • /src/Internal/Admin/Orders/ListTable.php line 1416
    			if ( ! $order ) {
    				continue;
    			}
    
    			do_action( 'woocommerce_remove_order_personal_data', $order ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    			++$changed;
    		}
    
    		return $changed;
    	}
    
    

See this hook used in plugins: