Home / Admin / Remove Gift Aid “Title” Field From Donation Forms
Duplicate Snippet

Embed Snippet on Your Site

Remove Gift Aid “Title” Field From Donation Forms

Code Preview
php
<?php
add_filter( 'charitable_default_donation_fields', function( $fields ) {
      if ( isset( $fields['title'] ) ) {
          // Remove from the donation form entirely
          $fields['title']['donation_form'] = false;
      }
      return $fields;
  }, 20 );

Comments

Add a Comment