Add Dynamic Hidden Field
/** * In this example, a new donation field is created but left out of the * front-end donation form. Instead, it is dynamically set as a hidden * field in the donation form, based on the ID of the…Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
/** * In this example, a new donation field is created but left out of the * front-end donation form. Instead, it is dynamically set as a hidden * field in the donation form, based on the ID of the…Continue reading
/** * If you want to add multiple new fields to your donation form, * you can do that in a single function. * * In the example below, we add three separate fields: * * – a text field…Continue reading
/** * Add a text field to the donation form. * * This field is added to the donor details section (by default, this is the section * with a header of “Your Details”). In the example below, we add…Continue reading
/** * This example shows how to remove fields from the donation form. * * Note that this approach requires Charitable 1.6 or above. */ add_action( ‘init’, function() { if ( ! function_exists( ‘charitable’ ) ) { return; } $fields_api…Continue reading
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalise your experience. You can manage your preferences, but blocking some cookies may impact site performance and services.
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Stripe is a payment processing platform that enables businesses to accept online payments securely and efficiently.
Service URL: stripe.com (opens in a new window)
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
WPForms is a user-friendly WordPress plugin for creating custom forms with drag-and-drop functionality.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Convert Insights offers data-driven analysis to optimize your marketing strategies and enhance customer engagement.
Service URL: www.convert.com (opens in a new window)
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
Clarity is a web analytics service that tracks and reports website traffic.
Service URL: clarity.microsoft.com (opens in a new window)
Marketing cookies are used to follow visitors to websites. The intention is to show ads that are relevant and engaging to the individual user.
OptinMonster is a powerful lead generation tool that helps businesses convert visitors into subscribers and customers.
Service URL: optinmonster.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.