| Server IP : 185.143.234.238 / Your IP : 185.215.232.195 Web Server : LiteSpeed System : Linux saman.shetabanhost.com 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64 User : behrakir ( 1361) PHP Version : 8.1.34 Disable Function : symlink,shell_exec,show_source,exec,popen,system,passthru,proc_open,proc_close,pcntl_exec,mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/behrakir/khanomam.com/wp-content/plugins/woo-wallet/templates/ |
Upload File : |
<?php
/**
* The Template for displaying wallet dashboard.
*
* This template can be overridden by copying it to yourtheme/woo-wallet/transfer.php.
*
* HOWEVER, on occasion we will need to update template files and you
* (the theme developer) will need to copy the new files to your theme to
* maintain compatibility. We try to do this as little as possible, but it does
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @author Subrata Mal
* @version 1.5.15
* @package StandaleneTech
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
$woo_wallet_transfer_idem_key = '';
if ( is_user_logged_in() && class_exists( 'Woo_Wallet_Frontend' ) ) {
$woo_wallet_frontend_instance = Woo_Wallet_Frontend::instance();
if ( method_exists( $woo_wallet_frontend_instance, 'issue_transfer_idempotency_key' ) ) {
$woo_wallet_transfer_idem_key = $woo_wallet_frontend_instance->issue_transfer_idempotency_key( get_current_user_id() );
}
}
$minimum_transfer_amount = woo_wallet()->settings_api->get_option( 'min_transfer_amount', '_wallet_settings_general', 0 );
$maximum_transfer_amount = woo_wallet()->settings_api->get_option( 'max_transfer_amount', '_wallet_settings_general', 0 );
?>
<!-- Transfer Form -->
<div class="woo-wallet-form-wrapper">
<h3 class="woo-wallet-section-title"><?php esc_html_e( 'Wallet Transfer', 'woo-wallet' ); ?></h3>
<form method="post" action="" id="woo_wallet_transfer_form">
<p class="woo-wallet-field-container form-row form-row-wide">
<label for="woo_wallet_transfer_user_id"><?php esc_html_e( 'Select Recipient', 'woo-wallet' ); ?>
<?php
if ( apply_filters( 'woo_wallet_user_search_exact_match', true ) ) {
esc_html_e( '(Email)', 'woo-wallet' );
}
?>
</label>
<select name="woo_wallet_transfer_user_id" id="woo_wallet_transfer_user_id" class="woo-wallet-select2" required=""></select>
</p>
<p class="woo-wallet-field-container form-row form-row-wide">
<label for="woo_wallet_transfer_amount"><?php esc_html_e( 'Amount', 'woo-wallet' ); ?></label>
<input id="woo_wallet_transfer_amount" type="number" step="0.01"
<?php
if ( $minimum_transfer_amount > 0 ) {
echo 'min="' . esc_attr( $minimum_transfer_amount ) . '"'; }
?>
<?php
if ( $maximum_transfer_amount > 0 ) {
echo 'max="' . esc_attr( $maximum_transfer_amount ) . '"'; }
?>
name="woo_wallet_transfer_amount" required="" placeholder="0.00"/>
</p>
<p class="woo-wallet-field-container form-row form-row-wide">
<label for="woo_wallet_transfer_note"><?php esc_html_e( 'What\'s this for?', 'woo-wallet' ); ?></label>
<textarea id="woo_wallet_transfer_note" name="woo_wallet_transfer_note" placeholder="<?php esc_attr_e( 'Optional note...', 'woo-wallet' ); ?>"></textarea>
</p>
<p class="woo-wallet-field-container form-row">
<?php wp_nonce_field( 'woo_wallet_transfer', 'woo_wallet_transfer' ); ?>
<input type="hidden" name="woo_wallet_idempotency_key" value="<?php echo esc_attr( $woo_wallet_transfer_idem_key ); ?>" />
<input type="submit" class="button" name="woo_wallet_transfer_fund" value="<?php esc_html_e( 'Proceed to Transfer', 'woo-wallet' ); ?>" />
</p>
</form>
</div>