Timeline for Ajax call returns 0 when add_action is inside a class in functions.php
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 7, 2021 at 23:36 | answer | added | Ayoub Bousetta | timeline score: 0 | |
Sep 21, 2016 at 13:49 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Sep 22, 2015 at 10:26 | comment | added | fernandus | wordpress.stackexchange.com/questions/203383/… | |
Sep 22, 2015 at 9:49 | history | edited | fernandus | CC BY-SA 3.0 |
added 28 characters in body
|
Sep 22, 2015 at 9:27 | answer | added | fernandus | timeline score: 0 | |
Sep 22, 2015 at 9:24 | comment | added | fernandus | Thanks milo....it works i have posted the answer below... | |
Sep 21, 2015 at 16:00 | comment | added | Milo | When your AJAX call is made there is no function hooked to that action, because there is no object. Your page and your AJAX call are two separate requests with no data persisting between the two. You must add your object on every request within your functions.php file. | |
Sep 21, 2015 at 6:15 | comment | added | fernandus | Thanks for your response....i am not creating my object in ajax call, its created in my pages (Template). $ob_call = new test; is located in my page when i am viewing my page its gets created | |
Sep 16, 2015 at 18:21 | answer | added | Prasad Nevase | timeline score: 1 | |
Sep 16, 2015 at 16:36 | comment | added | Milo | How does your object get created when the ajax call is made? It's not the same request you are making the call from. | |
S Sep 16, 2015 at 15:56 | history | suggested | Gabriel | CC BY-SA 3.0 |
Fix code formatting, improve code indentation and grammar, misc
|
Sep 16, 2015 at 15:26 | review | Suggested edits | |||
S Sep 16, 2015 at 15:56 | |||||
Sep 16, 2015 at 14:35 | review | First posts | |||
Sep 16, 2015 at 15:27 | |||||
Sep 16, 2015 at 14:30 | history | asked | fernandus | CC BY-SA 3.0 |