Skip to main content
9 events
when toggle format what by license comment
Mar 29, 2017 at 1:19 answer added Amit Rahav timeline score: -1
Jan 18, 2017 at 5:15 comment added Amit Rahav yes of curse, it's not properly hooked. i'm getting 0. the question is why... as i wrote - this class is being called from the initial function on my plugin class. all other hooks are working fine.
Jan 18, 2017 at 5:10 comment added Milo A simple test to see if your function is correctly hooked is to manually visit admin-ajax.php URL in your browser and pass the action as a GET var, like yourdomain.com/wp-admin/admin-ajax.php?action=ajaxexample_action.
Jan 18, 2017 at 5:06 comment added Amit Rahav @Milo take a look at my editing. i referred plugin variable as ajaxexampleObject.
Jan 18, 2017 at 5:01 history edited Amit Rahav CC BY-SA 3.0
a bit more about the wrong ajax response
Jan 18, 2017 at 4:59 comment added Milo According to your localize call, action is a property of ajaxexampleObject.
Jan 18, 2017 at 4:48 comment added Amit Rahav the data object has 'action' inside of it equals to "ajaxexample_action". it suppose to direct ajaxexample function on the PoorMansNameSpaceAJAX class.
Jan 18, 2017 at 4:05 comment added Milo If you are getting a 0 response, it means either action is missing or doesn't match any hooked action. I don't think you are correctly passing the action in your JS.
Jan 18, 2017 at 1:59 history asked Amit Rahav CC BY-SA 3.0