All Questions
2 questions
1
vote
1
answer
338
views
Get returned variable from a function to add_shortcode function
I'm passing successfully an ajax object to the backend following this (the script in the JS really it does not matters because I'm getting it well):
add_action( 'wp_ajax_my_action', '...
0
votes
0
answers
57
views
Ajax callback and shortcode functionality
I see that some people are having troubles using shortcodes in Ajax callbacks as apparently the Ajax instance is run in a different environment than usual.
Advices are more than one, many of them ...