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 | |
/** | |
* This template is used to display the donation grid with [give_donor_wall] | |
*/ | |
// Exit if accessed directly. | |
if (!defined('ABSPATH')) { | |
exit; | |
} |
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 hidden field to the form that stores the URL | |
add_action('givewp_donation_form_schema', static function (Give\Framework\FieldsAPI\DonationForm $form) { | |
$field = Give\Framework\FieldsAPI\Hidden::make('referralUrl') | |
->defaultValue($_SERVER['HTTP_REFERER']) | |
->emailTag('referralUrl'); | |
$form->insertAfter('email', $field); | |
}); | |
// (Optional) Use this email tag in the email templates {meta_donation_referralUrl} |
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 | |
add_filter('give_email_tag_email_access_link', 'custom_email_access_tag_link', 10, 2); | |
function custom_email_access_tag_link( $email_access_link, $tag_args ) { | |
// Set email access link if donor exist. | |
if ( ! empty( $tag_args['donor_id'] ) && $tag_args['verify_key'] ) { | |
$donor_id = absint( $tag_args['donor_id'] ); | |
$access_url = add_query_arg( | |
array( |
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
-- Change the wp_ prefix to match the WP prefix on your site | |
-- Create give_comments table | |
CREATE TABLE wp_give_comments ( | |
comment_ID bigint(20) NOT NULL AUTO_INCREMENT, | |
user_id bigint(20) NOT NULL, | |
comment_content longtext NOT NULL, | |
comment_parent mediumtext NOT NULL, | |
comment_type mediumtext NOT NULL, | |
comment_date datetime NOT NULL, | |
comment_date_gmt datetime NOT NULL, |
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 | |
/** | |
* This template is used to display the donation grid with [give_form_grid] | |
* Insert this in a directory called 'give' in your theme's directory. A child theme is highly recommended | |
*/ | |
// Exit if accessed directly. | |
use Give\Helpers\Form\Template; | |
use Give\Helpers\Form\Utils as FormUtils; |
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
#: assets/dist/js/donor-dashboards-app.js:1 | |
msgid "View Receipt" | |
msgstr "" | |
#: assets/dist/js/donor-dashboards-app.js:1 | |
msgid "Count" | |
msgstr "" | |
#: assets/dist/js/donor-dashboards-app.js:1 | |
msgid "Statement" | |
msgstr "" | |
#: assets/dist/js/donor-dashboards-app.js:1 |
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_ffm_phone() { | |
?> | |
<tr class="give-export-option-fields give-export-option-custom-field"> | |
<td scope="row" class="row-title"> | |
<label><?php esc_html_e( 'Phone Number:', '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 give_upgrades_donor_name() { | |
// Adjust the number in the next line if you have more than 9999 donors | |
$donors = Give()->donors->get_donors(['number' => 9999,]); | |
if ( $donors ) { | |
// Loop through Donors | |
foreach ( $donors as $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 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"> |
NewerOlder