Home › Forums › Backend Issues (wp-admin) › Ajax the ACF way › Reply To: Ajax the ACF way
The reason for extending the acf.ajax property is in order to be able to access other properties of acf.ajax more easily. I’m sure they can be accessed directly, but I it’s just easier to do it the other way by following the code in ACF as an example.
I don’t know when you were trying to add your actions, but ajax actions fire immediately after the admin_init hook, so as long as you add them before this hook fires you should be good.
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.