× document.addEventListener(‘DOMContentLoaded’, function() { var modal = document.getElementById(“myModal”); var span = document.querySelector(“.modal .close”); var buttons = document.querySelectorAll(“.btn.becomeVipBtn”); // Debugging: log to verify modal, span, and buttons elements are found console.log(“Modal:”, modal); console.log(“Close Button:”, span); console.log(“Trigger Buttons:”, buttons); if (modal &&…Continue reading
/** * Remove Caddy Premium conversions from showing on the WooCommerce orders page * * This prevents Caddy Premium from modifying the orders table and item display * * @author Mike Valera * @plugin Caddy – Premium Edition * @link…Continue reading
/** * Approve user after PayPal payment status is Complete * * @link https://wpforms.com/developers/how-to-approve-a-user-after-a-paypal-payment/ */ function wpf_dev_activate_user_after_paypal_complete( $fields, $form_data, $payment_id, $data ){ // Add the field ID for the user’s account email $email_field = 3; // Stop editing $user =…Continue reading
/** * Add fireworks to the canvas element on the confirmation message * * @link https://wpforms.com/developers/how-to-add-confetti-animation-to-confirmation-message/ */ function wpf_fireworks_animation() { ?>Continue reading
** * Add confetti to the canvas element on the confirmation message * * @link https://wpforms.com/developers/how-to-add-confetti-animation-to-confirmation-message/ */ function wpf_confetti_animation() { ?>Continue reading
/** * Populate field from anchor link. * * @link https://wpforms.com/developers/how-to-populate-a-form-field-from-an-anchor-link/ */ function wpf_dev_autofill_field() { ?>Continue reading