New answers tagged api
I'm still relatively new to Wordpress Development, but shouldn't this code be in customizer.php, in the "inc" folder(which would be within your active theme's folder)? Also I know the codex says this particular code is just for the live preview, but after adding it in one of my projects it seemed to fix my issue. So you may need to include these get ...
Sounds like a perfect candidate for the WordPress REST API It's getting integrated with core in 4.1 I think, but you can use it as a plugin for now.
Top 50 recent answers are included