Create a counter variable in wp_options that increments when submit button is pressed

I’m a php beginner. I have an order form on my site (NB: the form is generated from a custom products plugin).
I want to create a reference code whenever a user submits, now I need help with creating a counter in wp_options whenever an order is made to use as the reference.

Read more here: Create a counter variable in wp_options that increments when submit button is pressed

Leave a Reply

Your email address will not be published. Required fields are marked *