This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function give_populate_amount_name_email() { | |
?> | |
<script> | |
jQuery( document ).ready(function() { | |
( function( window, document, jQuery, undefined ) { | |
'use strict'; | |
var giveCustom = {}; | |
giveCustom.init = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function give_export_transaction_id() { | |
?> | |
<tr class="give-export-option-fields give-export-option-custom-field"> | |
<td scope="row" class="row-title"> | |
<label><?php esc_html_e( 'Transaction ID:', 'give' ); ?></label> | |
</td> | |
<td class="give-field-wrap"> | |
<div class="give-clearfix"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function export_option_givewp_mc_fields() { | |
?> | |
<tr class="give-export-option-fields give-export-option-custom-field"> | |
<td scope="row" class="row-title"> | |
<label><?php esc_html_e( 'MailChimp:', 'give' ); ?></label> | |
</td> | |
<td class="give-field-wrap"> | |
<div class="give-clearfix"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function addGiveSalesforceDonationArgs( | |
$args, | |
\GiveSalesforce\Salesforce\DataTransferObjects\SalesforceOpportunityData $data | |
) { | |
// Acknowledgement Status | |
$args['npsp__Acknowledgment_Status__c'] = "Acknowledged"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function donation_phone_email_tag( $email_tags ) { | |
$new_email_tag = array( | |
'tag' => 'give_phone', | |
'description' => esc_html__( 'This tag outputs the donation phone', 'give' ), | |
'function' => 'get_donation_phone', | |
'context' => 'general', // Context can be general, donor, form or donation | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function export_option_givewp_field_api_fields() { | |
?> | |
<tr class="give-export-option-fields give-export-option-custom-field"> | |
<td scope="row" class="row-title"> | |
<label><?php esc_html_e( 'Custom Field Title:', 'give' ); ?></label> | |
</td> | |
<td class="give-field-wrap"> | |
<div class="give-clearfix"> | |
<ul class="give-export-option-custom-fields-ul"> | |
<!-- Custom field checkbox --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function give_stripe_custom_payment_meta( $charge_args ) { | |
// Sanitize the input posted data to the form. | |
$posted_data = give_clean( filter_input_array( INPUT_POST ) ); | |
//Uncomment the followign line to print the $posted_data array to the error log | |
//error_log(print_r($posted_data, TRUE)); | |
//Get form ID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use GiveFunds\Models\Fund; | |
use GiveFunds\Repositories\Funds; | |
use GiveFunds\Repositories\Revenue; | |
function give_include_fund_payment_meta( $charge_args ) { | |
if ( ! defined( 'GIVE_FUNDS_ADDON_VERSION' )) { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function give_add_custom_column_to_export_donor( $default_columns ) { | |
$default_columns['date_created'] = esc_html__( 'Donor Created Date', 'give' ); | |
return $default_columns; | |
} | |
add_filter( 'give_export_csv_cols_donors', 'give_add_custom_column_to_export_donor' ); | |
add_filter( 'give_export_donors_get_default_columns', 'give_add_custom_column_to_export_donor' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function add_give_transaction_id_tag() { | |
give_add_email_tag( | |
array( | |
'tag' => 'transaction_id', // The tag name. | |
'desc' => __( 'Outputs the payment gateway transaction ID', 'give' ), | |
'func' => 'custom_transaction_id_tag', // Callback to function below. | |
'context' => 'donation', // This tag can be for both admin and donor notifications. | |
'is_admin' => false, // default is false. This is here to simply display it as an option. | |
) |
NewerOlder