Why plugin ajax response is -1?
according to wordPress jedi, scribu, you can now enqueue scripts from inside the plugin handler. http://scribu.net/wordpress/conditional-script-loading-revisited.html you were echoing things and in shortcode handling you have to return. i ran into some issues getting the script to work by returning the script, so i moved it to an external file which definitely works. function myajax(){ … Read more