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 funeralpress_custom_localize( $translated_text, $untranslated_text, $domain ) { | |
if($untranslated_text == 'Burial Date'&& $domain = 'sp-wpfh'){ | |
$translated_text = 'Services Date'; | |
} | |
return $translated_text; | |
} |
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 | |
/** | |
* Plugin Name: WooCommerce Subscriptions Pending payment fix | |
*/ | |
$wc_pending_payment_fix = new wc_pending_payment_fix; | |
add_action('init', array($wc_pending_payment_fix, 'retry_payments')); | |
class wc_pending_payment_fix{ | |
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 AdaptiveCall($bodyparams, $method, $payKey) { | |
try | |
{ | |
$body_data = http_build_query($bodyparams, "", chr(38)); | |
$url = trim("https://svcs.sandbox.paypal.com/AdaptivePayments/".$method.""); | |
$params = array("http" => 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
<?php | |
// code modified from source: https://cms.paypal.com/cms_content/US/en_US/files/developer/nvp_MassPay_php.txt | |
// documentation: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/howto_api_masspay | |
// sample code: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_code | |
// eMail subject to receivers | |
$vEmailSubject = 'Pagamento Paypal'; | |
/** MassPay NVP example. | |
* |
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_action('sp_cdm_email_send', 'do_something_after_email', 10,3); | |
function do_something_after_email($type,$file_id,$post){ | |
if($type == 'sp_cu_admin_user_email'){ | |
//do something here | |
} |
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 | |
/* | |
Plugin Name: Woocommerce migrate orders | |
Author: Anthony Brown (codeable) | |
Version: 1.0 | |
*/ | |
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { | |
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 | |
// Include required library files. | |
global $wpdb,$trans_id,$last_postid,$payable_amount; | |
require_once(TEMPLATIC_PAYPAL_EXPRESS_CHECKOUT_DIR .'/includes/config.php'); | |
require_once(TEMPLATIC_PAYPAL_EXPRESS_CHECKOUT_DIR .'/includes/paypal.class.php'); | |
$post_title = get_post($last_postid); | |
$post_title = $post_title->post_title; | |
// Create PayPal object. | |
$PayPalConfig = array('Sandbox' => $sandbox, 'APIUsername' => $api_username, 'APIPassword' => $api_password, 'APISignature' => $api_signature); |
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_action('funeralpress/admin/obit/content_tab', 'my_new_tab', 12, 2); | |
function my_new_tab($r, $obit_id){ | |
echo ' <li><a href="http://linktourl">Tab Title</a></li>'; | |
} | |
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_filter('wpfp_frontend_obit_menu', 'my_new_tab'); | |
function my_new_tab($additional_menu_items){ | |
$additional_menu_items .='<li><a href="http://yoururl" >Tab Name</a></li>'; | |
return $additional_menu_items; | |
} |
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 function removes the add file bar for non admin users | |
#place this in your themes function.php file | |
add_filter('sp_cu_below_search_nav', 'remove_cdm_bar'); | |
function remove_cdm_bar($html){ | |
if(current_user_can('manage_options') == false){ | |
$html = ''; | |
} | |
return $html; |