Home › Forums › ACF PRO › Random code field for coupons system › Reply To: Random code field for coupons system
You can place the code in your theme’s functions.php file or in a custom plugin. This link explains the differences. I like to use custom plugins, that way, if switching themes, my customizations remain. Using the Pluginception plugin (not necessarily supported by ACF, just a tool I like to suggest to simplify things) allows you to quickly create a plugin for this purpose.
I can’t fully understand your exact use case. Please explain it step by step with full details 😉 This thread might get you going otherwise.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.