Is there a better way to access transients using javascript

Question

I’ve been searching around the web trying to find a better way to use WordPress transients with javascript. Currently I am using admin-Ajax to run a php function that retrieves the transient and returns it. This works fine but I’m curios to know if there is a more effective way of accessing that data without the overhead of using ajax and php.

I know I could probably do this using wp_localize_script() but I’m not sure if that method is any better that my current solution. Hopefully there is an expert out there that can help me with this.

0
, , , Josh w 7 years 2015-12-14T23:52:39-05:00 0 Answers 70 views 0

Leave an answer

Browse
Browse