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.8.1

do_action('woocommerce_remove_order_personal_data') is found 2 times:

  • /includes/admin/list-tables/class-wc-admin-list-table-orders.php line 462
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
        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
    1412
    1413
    1414
    1415
    1416
    1417
    1418
    1419
    1420
    1421
            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: