Hey folks!
Thanks for visiting this page.
You can always check the official free or paid GiveWP on their official website.
I've curated a list of all the third-party addons for GiveWP - most popular donations plugin for WordPress.
<?php | |
/** | |
* Allow Script Tags to be used in editor for Administrator user role. | |
* | |
* @author Mehul Gohil <hello@mehulgohil.com> | |
*/ | |
function allow_unfiltered_html_for_administrators( $allowed_tags ) { | |
// Bailout, if the logged-in user role is not `administrator`. | |
if ( ! current_user_can( 'administrator' ) ) { | |
return $allowed_tags; |
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder; |
<?php | |
/** | |
* Get User Role. | |
* | |
* This function can be used to get user role of a loggedin user. | |
* | |
* @since 1.0.0 | |
* | |
* @return string | |
*/ |
<?php | |
/** | |
* This code snippet will help you update the email address on donor as well as WP user profiles when donor updates the email address | |
* using legacy donor profile `[give_profile_editor]`. | |
* | |
* @param int $user_id WP User ID. | |
* @param array $userdata WP User data. | |
* | |
* @return void | |
*/ |
<?php | |
function custom_prefix_modify_currency_symbol( $symbol ) { | |
if( defined( 'ICL_LANGUAGE_CODE' ) && 'en' === ICL_LANGUAGE_CODE ) { | |
$symbol = 'AED'; | |
} | |
return $symbol; | |
} | |
add_filter( 'give_currency_symbol', 'custom_prefix_modify_currency_symbol', 10 ); |
<?php | |
/** | |
* Add data to CSV column. | |
* | |
* @param array $columns List of CSV columns. | |
* | |
* @since 1.0.0 | |
* | |
* @return array | |
*/ |
Array | |
( | |
[headers] => Requests_Utility_CaseInsensitiveDictionary Object | |
( | |
[data:protected] => Array | |
( | |
[server] => nginx | |
[date] => Sun, 31 Jan 2021 15:43:18 GMT | |
[content-type] => text/plain;charset=UTF-8 | |
[content-length] => 639 |
<?php | |
add_filter( 'nonce_life', function( $lifespan ) { | |
return 120; | |
} |
<?php | |
function mg_update_payment_description( $text, $donationId ) { | |
$donation_type = give_get_meta( $donationId, 'donation_type', true ); // `donation_type` is the custom field key added by the Form Field Manager. | |
return "{$text} - {$donation_type}"; | |
} | |
add_filter( 'mgmcfg_update_form_description', 'mg_update_payment_description', 10, 2 ); |