Archives: Snippets
Yandex AD (Header Section)
Google Search Console
Bing Webmaster
Yandex (New Counter)
Euroclear Holding
Supports sending an email with a Stripe Pre-Approved payment is submitted.
add_action( ‘init’, function() { if ( ! class_exists( ‘\EDD\Emails\Types\Email’ ) ) { return; } /** * The PreApproved email class. * * This is sent to customers as their ‘preapproved payment confirmation’. */ class EDDWP_PreApproved_Email extends \EDD\Emails\Types\Email { /** *…Continue reading
Untitled Snippet
Widget Content | Display Eventbrite Events
add_filter( ‘eawp_excerpt’, function($content) { return the_content(); }, 10,1);Continue reading
Remove Gateway Choice On A Campaign/Donation Page
// add this snippet to functions.php in your theme add_filter( ‘charitable_active_gateways’, ‘charitable_change_gateways_per_campaign’, 10, 1 ); function charitable_change_gateways_per_campaign( $gateways ) { global $post; // $gateways will be an array similar to this: // [offline] => Charitable_Gateway_Offline // [stripe] => Charitable_Gateway_Stripe_AM if…Continue reading