Sell access to form [closed]

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