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
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 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 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. | |
) |
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
/** | |
* Add Anonymous Donation Data fields in export donor fields tab. | |
*/ | |
function give_anonymous_donation_standard_donor_fields() { | |
?> | |
<li> | |
<label for="give-anonymous-donations"> | |
<input type="checkbox" checked | |
name="give_give_donations_export_option[give_anonymous_donation]" | |
id="give_anonymous_donation"><?php _e( 'Anonymous Donation', 'give' ); ?> |
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 | |
/** | |
* Adds a CCAvenue Phone Tag: {ccavenue_phone} | |
* This function creates a custom Give email template tag | |
* | |
* @param array $email_tags List of email tags. | |
* | |
* @return array | |
*/ |
NewerOlder