/var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/templates
NameSizeModeActions
emails/-0755rm
global/-0755rm
receipt/-0755rm
single-give-form/-0755rm
email-login-form.php39750644editdlrm
history-donations.php91450644editdlrm
payment-processing.php5940644editdlrm
shortcode-donor-wall.php40360644editdlrm
shortcode-form-grid.php39900644editdlrm
shortcode-goal.php65280644editdlrm
shortcode-login.php29150644editdlrm
shortcode-profile-editor.php91360644editdlrm
shortcode-receipt.php105410644editdlrm
shortcode-register.php30350644editdlrm
shortcode-totals-progress.php13570644editdlrm
single-give-form.php9760644editdlrm
Edit: /var/www/vhosts/ihelp.ro/ajutam.ro/wp-content/plugins/give/templates/shortcode-receipt.php (10541B)
ID; $donation_number = Give()->seq_donation_number->get_serial_code( $donation_id ); $form_id = give_get_payment_meta( $donation_id, '_give_payment_form_id', true ); $form_name = give_get_donation_form_title( $donation_id ); $user = give_get_payment_meta_user_info( $donation_id ); $email = give_get_payment_user_email( $donation_id ); $status = $donation->post_status; $status_label = give_get_payment_status( $donation_id, true ); $company_name = give_get_payment_meta( $donation_id, '_give_donation_company', true ); // Update donor name, if title prefix is set. $full_name = give_get_donor_name_with_title_prefixes( $user['title'], "{$user['first_name']} {$user['last_name']}" ); /** * Generate Donation Receipt Arguments. * * Added donation receipt array to global variable $give_receipt_args to * manage it from single variable * * @since 1.8.8 */ $give_receipt_args['donation_receipt']['donor'] = [ 'name' => __( 'Donor', 'give' ), 'value' => $full_name, 'display' => $give_receipt_args['donor'], ]; /** * Show Company name on Donation receipt Page * * @since 2.0.7 * * @param bool show/hide company name in donation receipt page. * * @return bool show/hide company name in donation receipt page. */ $give_receipt_args['donation_receipt']['company_name'] = [ 'name' => __( 'Company Name', 'give' ), 'value' => esc_attr( $company_name ), // Do not show company field if empty 'display' => empty( $company_name ) ? false : $give_receipt_args['company_name'], ]; $give_receipt_args['donation_receipt']['date'] = [ 'name' => __( 'Date', 'give' ), 'value' => date_i18n( give_date_format(), strtotime( give_get_payment_completed_date( $donation_id ) ) ), 'display' => $give_receipt_args['date'], ]; $give_receipt_args['donation_receipt']['total_donation'] = [ 'name' => __( 'Total Donation', 'give' ), 'value' => give_donation_amount( $donation_id, [ 'currency' => true, 'amount' => true, 'type' => 'receipt', ] ), 'display' => $give_receipt_args['price'], ]; $give_receipt_args['donation_receipt']['donation'] = [ 'name' => __( 'Donation', 'give' ), 'value' => $form_name, 'display' => true, ]; $give_receipt_args['donation_receipt']['donation_status'] = [ 'name' => __( 'Donation Status', 'give' ), 'value' => esc_attr( $status_label ), 'display' => $give_receipt_args['payment_status'], ]; $give_receipt_args['donation_receipt']['donation_id'] = [ 'name' => __( 'Donation ID', 'give' ), 'value' => $donation_number, 'display' => $give_receipt_args['payment_id'], ]; $give_receipt_args['donation_receipt']['payment_method'] = [ 'name' => __( 'Payment Method', 'give' ), 'value' => give_get_gateway_checkout_label( give_get_payment_gateway( $donation_id ) ), 'display' => $give_receipt_args['payment_method'], ]; /** * Extend Give Donation Receipt * * You can easily extend the donation receipt argument using the filter give_donation_receipt_args * * @params array $give_receipt_args['donation_receipt'] Array of arguments for Donation Receipt. * @params int $donation_id Donation ID. * @params int $form_id Donation Form ID. * * @since 1.8.8 */ $give_receipt_args['donation_receipt'] = apply_filters( 'give_donation_receipt_args', $give_receipt_args['donation_receipt'], $donation_id, $form_id ); // When the donation were made through offline donation, We won't show receipt and payment status though. if ( 'offline' === give_get_payment_gateway( $donation_id ) && 'pending' === $status ) { /** * Before the offline donation receipt content starts. * * @since 1.8.14 * * @param Give_Payment $donation Donation object. * @param array $give_receipt_args Receipt Arguments. */ do_action( 'give_receipt_before_offline_payment', $donation, $give_receipt_args ); ?>

elements before the receipt first header item. * * @since 1.7 * * @param object $donation Donation object. * @param array $give_receipt_args Receipt_argument. */ do_action( 'give_payment_receipt_header_before', $donation, $give_receipt_args ); ?> elements after the receipt last header item. * * @since 1.7 * * @param object $donation Donation object. * @param array $give_receipt_args Receipt_argument. */ do_action( 'give_payment_receipt_header_after', $donation, $give_receipt_args ); ?> elements before the receipt first item. * * @since 1.7 * * @param object $donation Donation object. * @param array $give_receipt_args Receipt_argument. */ do_action( 'give_payment_receipt_before', $donation, $give_receipt_args ); ?> elements after the receipt last item. * * @since 1.7 * * @param object $donation Donation object. * @param array $give_receipt_args Receipt_argument. */ do_action( 'give_payment_receipt_after', $donation, $give_receipt_args ); ?>