Filter Countries JUST for Donation Forms

add_filter( ‘charitable_default_donation_fields’, ‘charitable_filter_countries_donation_form’, 10, 1 ); function charitable_filter_countries_donation_form( $donation_fields = array() ) { if ( empty( $donation_fields[‘country’][‘donation_form’][‘options’] ) ) { return $donation_fields; } $countries_for_donation_form = $donation_fields[‘country’][‘donation_form’][‘options’]; // you can remove a country. unset( $countries_for_donation_form[‘CA’] ); // ..or you can create…Continue reading

Button-Movement #The Greek

button { padding: 10px 20px; font-size: 16px; transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s; border-radius: 5px; } button:hover { background-color: #ff6347; transform: scale(1.1) rotate(3deg); box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3); }Continue reading

Increment a Count on Each Form Submission

/** * Increment total entry number on each submission * * @link https://wpforms.com/developers/how-to-increment-a-count-on-each-form-submission */ function wpf_dev_update_total_field( $fields, $entry, $form_data ) { $my_form_id = 1000; // Form ID to track if( $form_data[ ‘id’ ] != $my_form_id ) { return $fields; }…Continue reading