/* 1. Use a more-intuitive box-sizing model */ *, *::before, *::after { box-sizing: border-box; } /* 2. Remove default margin */ * { margin: 0; } body { /* 3. Add accessible line-height */ line-height: 1.5; /* 4. Improve text…Continue reading
× 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
× 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
function pw_edd_prevent_duplicate_purchase( $valid_data, $posted ) { $cart_contents = edd_get_cart_contents(); foreach( $cart_contents as $item ) { if( edd_has_user_purchased( get_current_user_id(), $item[‘id’] ) ) { edd_set_error( ‘duplicate_item’, ‘You have already purchased this item so may not purchase it again’ ); } } }…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