Tag: ajax in front side in wordpress
-
WordPress: How to use Ajax at front side without using admin-ajax.php
Mostly all wordpress developers write the code to create widgets in admin side. and he use following code: var ajaxurl =”; var data = { action: ‘action_function_name’ }; // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php jQuery.post(ajaxurl, data, function(response) { alert(response); }); But when he wants to use…