Google Analytics (copy)
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-CXXXXXXXXX’);Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-CXXXXXXXXX’);Continue reading
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘G-DX86LGG5QQ’);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
window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘XXXXXXX’);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