ID}"; // Delete test data if the action has been confirmed if ( ! empty( $_GET['confirm'] ) && $_GET['confirm'] === 'yes' ) { $result = delete_user_meta( $profileuser->ID, '_chargeio_test_customer_info' ); if ( $result ) { ?>

" class="button">

ID, '_chargeio_live_customer_info' ); if ( $result ) { ?>

" class="button">

ID}"; ?>
Delete ChargeIO Test Data

" class="button"> Warning: This will delete ChargeIO test data for this customer, make sure to back up your database.', 'chargeio-for-woocommerce' ); ?>

Delete ChargeIO Live Data

" class="button"> Warning: This will delete ChargeIO live data for this customer, make sure to back up your database.', 'chargeio-for-woocommerce' ); ?>

settings['saved_cards'] === 'yes' ) { // If user requested to delete a card, delete it if ( isset( $_POST['delete_card'] ) && wp_verify_nonce( $_POST['_wpnonce'], 'cio4wc_delete_card' ) ) { CIO4WC_API::delete_card( get_current_user_id(), intval( $_POST['delete_card'] ) ); } $user_meta = get_user_meta( get_current_user_id(), $cio4wc->settings['chargeio_db_location'], true ); $credit_cards = isset( $user_meta['cards'] ) ? $user_meta['cards'] : false; $args = array( 'user_meta' => $user_meta, 'credit_cards' => $credit_cards, ); cio4wc_get_template( 'saved-cards.php', $args ); } } } new CIO4WC_Customer();