This file contains hidden or 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 | |
/** | |
* Plugin Name: My PaiementPro with GiveWP | |
*.Version: 1.0.0 | |
* Author: Mehul Gohil | |
*/ | |
/** | |
* Register payment method. | |
* |
This file contains hidden or 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 mg_update_product_description( $productDesc, $donationId ) { | |
// Do whatever you want to add using the Form Id or $_POST and update the product description and return it. | |
$purpose = give_get_meta( $donationId, 'purpose', true ); // `purpose` here is the name of the FFM field. | |
return $purpose; | |
} | |
add_filter( 'mggi88_update_product_description_text', 'mg_update_product_description', 10, 2 ); |
This file contains hidden or 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 mg_update_remark( $remark, $formId ) { | |
// Do whatever you like to update the remark text. | |
$remark = 'This is my remark'; // This is just an example how to update remark text. | |
return $remark; | |
} | |
add_filter( 'mggi88_update_remark_text', 'mg_update_remark', 10, 2 ); |
This file contains hidden or 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
echo "Welcome to Create WordPress Site Wizard!" | |
echo -n "Enter Folder Name:" | |
read foldername | |
echo -n "Enter Site Name:" | |
read sitename | |
echo "Creating Site Folder" | |
mkdir ${foldername} | |
cd ${foldername} |
This file contains hidden or 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 | |
/** | |
* Plugin URI: https://givewp.com/ | |
* Plugin Name: Custom GiveWP Simple Ticket Incrementer | |
* Description: A simple functionality plugin (not supported) to increment donation amounts based on a number input | |
* field. Ideal for simple ticket sales. This is provided as an example plugin, it is not officially supported by | |
* GiveWP.com in any way and we are not liable for how it impacts your site in any way. | |
* Version: 1.1.0 | |
* Author: The impress.org team, dlocc | |
* |
This file contains hidden or 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 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 ); |
This file contains hidden or 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( 'nonce_life', function( $lifespan ) { | |
return 120; | |
} |
This file contains hidden or 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
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 |
This file contains hidden or 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 data to CSV column. | |
* | |
* @param array $columns List of CSV columns. | |
* | |
* @since 1.0.0 | |
* | |
* @return array | |
*/ |
This file contains hidden or 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 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 ); |