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


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: