Probably going to be a custom meta type on the users. During the sign up process to your website use the add_user_meta()
function and declare the value as 0. Then as people buy from your shop you’re going to have to find a hook somewhere in WooCommerce (Maybe on the order complete page?) to update the value. Then I presume you have coded the form yourself so just update the user meta to minus one every time they submit the form. You’re also going to have to check they have a positive score too. For updating the user meta see the update_user_meta link.
https://codex.wordpress.org/Function_Reference/add_user_meta
https://codex.wordpress.org/Function_Reference/update_user_meta
Related Posts:
- WordPress Multi-Step Product Search
- WPForms Custom Redirect not working
- Meta Key array building with multiple input values from fields
- Woocommerce Add Variation Product to Cart from custom link [closed]
- How do I get WooCommerce to automatically recreate pages? [closed]
- WooCommerce – How to Add a Custom Field to Cart Items and Cart Totals [closed]
- User profiles and object associations
- Multi step form, custom plugin
- how to redirect to my template
- Contact Form 7 plugin refreshing page on submit [closed]
- Show “Local Pickup” shipping method only for specific Woocommerce product categories [closed]
- WordPress plugin form not saving data
- jQuery Plugin to use WordPress functions in AJAX request
- Is it possible to set up multistore in Woocommerce? [closed]
- WooCommerce E-Check payment gateway disappeared when site switched to multi-site
- woocommerce_order_status_completed action hook not working [closed]
- How to update billing_email when user_email is updated [closed]
- How to trigger $_GET request within admin plugin page?
- Form doesn’t submit on second submit call
- How to configure two SMTP Server for wordpress
- Woocommerce plugin for minimum order and add-to-card-step
- Change wordpress current_time function to different timezone
- Automatically add attributes to woocommerce product?
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- Woocommerce API HTTP Response 401
- How to use WP-CLI / WC-CLI to bulk import 1000s of products (variable and simple)?
- woocommerce payment gateway callback not firing [closed]
- WordPress Keeps Logging Out – What Tests Can I Run to Solve This?
- New databes tables with – WooCommerce – for developers [closed]
- WordPress WPforms customization
- Programmatically Process Order through WooCommerce/Stripe Payment Gateway [closed]
- Woocommerce Create custom product type with variations
- Remove /product/ from url. I want only category name then product name
- Save custom attributes of product in woocommerce
- Filtering WooCommerce Orders by Category
- creating a custom shop page display on archive woocommerce
- Adding Static Image to WooCommerce Content-Single-Product template
- Hide a Menu Item on Login
- Plugin that will output submitted form data for user? [closed]
- coding a WordPress AJAX Form using PHP to check if User is Logged Out and Show error
- Show icons or badges under title on product archives/category pages
- WooCommerce: after install hook
- How to add a new column with text fields to WooCommerce Cart List?
- Woocommerce: limit user to see only the products he created
- how get curent URL slug from archive page [closed]
- Storing Form data in a different database
- Contact Form 7 “non-selectable” options in a drop down [closed]
- How to append new form elements in “Add New” form of Users in WordPress admin panel?
- WordPress Phone Field Check (use numbers, spaces and pluses)
- Can export gallery but can’t import it Wp all import
- Restrict posts to customers with complete WooCommerce orders only
- Get product categories and add them to a custom taxonomy
- Linking form to user meta fields
- How to Get Category Name When Export Products
- woocommerce remove coupon link does not work
- Plugins to generate reflinks in WordPress
- WordPress – send digital product with custom email
- WoCommerce Cart is not showing pricing
- How to add label/badge on bookable product based on their booking status
- How to Fix WordPress multisite woocommerce 403 file error
- Submitting form to PHP
- Adding discount functionality to the cart
- How to find the file path in WordPress?
- I have English words in Kurdish pages
- How can I implement radio buttons with icons in Contact form 7?
- Woocommerce Attribute price for non-variations
- “Enable Media Replace” plugin does not update serialized object in WPMeta
- Change Woo Custom Endpoint Titles from a Plugin
- Woocommerce functions in custom class, avoid errors
- How Can I display Specific User Pages?
- Fetching users data from REST API
- Automatically check “Enable stock management at product level” to the existing products?
- Change hook to add_action in a plugin class
- Adding/ Removing actions for plugins
- Unable to sync woocommerce variations
- Run one-time script calling plugin functions
- Is there a function to search for a wildcard value when calling a shortcode?
- Create plugin with form in post and submit it to specific form
- Link Forms on WordPress
- Capturing POST data
- Unable to show 4 products in a row
- Woocommerce quick checkout form [closed]
- Woocommerce Large Variations Shows Out of Stock Items [closed]
- Why does theme need woocommerce to show images / content on front page?
- Plugin Beauty Contact Popup Form with while loop
- how do I solve Installation failed: There has been a critical error on your website
- WooCommerce product prices not showing up correctly [closed]
- woocommerce show cities state as dropdown list
- which plugin is this? [closed]
- Adding a script & php to functions.php
- Override the plugin class and function
- How to Allow Users to Select Recipients In a WordPress Comment section?
- Form with response button after on table after submission
- how to add meta for order in woocommerce
- WooCommerce REST API aborts connection [closed]
- Product customizing quiz – quiz adding products to the cart
- Tips on using a custom template with Ultimate Member
- Can’t save formdata in DB
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- How to create different woocommerce single_product.php pages for each product? [closed]