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

MFP > Dequeue ACF

acf_update_setting(‘enqueue_select2’, false); acf_update_setting(‘enqueue_datepicker’, false); acf_update_setting(‘enqueue_datetimepicker’, false); acf_update_setting(‘enqueue_google_maps’, false); add_action(‘wp_enqueue_scripts’, ‘deregister_acf_styles_95433467545’ ); function deregister_acf_styles_95433467545(){ wp_deregister_style( ‘acf’ ); wp_deregister_style( ‘acf-field-group’ ); wp_deregister_style( ‘acf-global’ ); wp_deregister_style( ‘acf-input’ ); wp_deregister_style( ‘acf-extended-input’ ); wp_deregister_style( ‘acf-datepicker’ ); wp_deregister_style( ‘acfe-input’ ); wp_deregister_style( ‘wp-block-library’ ); wp_deregister_style( ‘wp-color-picker’ );…Continue reading

Disable Gutenberg Style

/* DISABLE GUTENBERG STYLE IN HEADER| WordPress 5.9 */ function wps_deregister_styles() { // wp_dequeue_style( ‘global-styles’ ); wp_dequeue_style( ‘classic-theme-styles’ ); } add_action( ‘wp_enqueue_scripts’, ‘wps_deregister_styles’, 100 );Continue reading

Remove Recurring Donation Time Periods

/** * This snippet removes some options for recurring donation periods with Charitable’s Recurring Donations addon. * This might reset or cause odd things to happen to campaigns who resave settings without updating the period if * they already selected…Continue reading

Scroll Progress Bar

add_action(‘wp_body_open’, function() { echo ‘ ‘; }); add_action(‘wp_head’, function() { echo ‘ ‘; }); add_action(‘wp_footer’, function() { echo ‘‘; });Continue reading