Home › Forums › Add-ons › Options Page › Is this the right way? › Reply To: Is this the right way?
That is the way I would do it as long as you trust the person that is entering or can edit the key value on the options page.
If the people entering the values may not be trustworthy then there are various WP function that you can use to sanitize values depending on what it is used for and the list can be found here https://developer.wordpress.org/apis/security/sanitizing/
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.