PHP: How to access db the right way in plugin?
I don’t understand if it works for you or not. For me the code is not wrong, maybe can be optimized. For the ajax request, if it is made in the backend, yo do not need to pass the ajax url using wp_localize_script. From WP 2.8 a global variable ajaxurl is defined to be used … Read more