499 reputation
11033
bio website github.com/nekojira
location
age 34
visits member for 3 years, 8 months
seen May 23 at 14:57

May
12
revised WordPress development using Docker - how to share directories?
added 268 characters in body
May
12
revised WordPress development using Docker - how to share directories?
added 282 characters in body
May
12
revised WordPress development using Docker - how to share directories?
added 282 characters in body
May
12
asked WordPress development using Docker - how to share directories?
Apr
27
awarded  Self-Learner
Apr
16
accepted Can't get a JSON object in response to an ajax request with wp_ajax
Apr
16
comment Can't get a JSON object in response to an ajax request with wp_ajax
oh... this is from 5 months ago... I did answer to my own question by the way the next day I posted it, using bits of BODA82 answer - I just didn't marked it as the correct answer; @toscho added his follow up much later yesterday I can't verify if his answer is also good now, it makes sense though
Mar
20
awarded  Curious
Mar
13
awarded  Popular Question
Mar
9
awarded  Notable Question
Feb
3
awarded  Famous Question
Feb
2
awarded  Popular Question
Jan
28
awarded  Popular Question
Dec
16
awarded  Popular Question
Dec
9
comment While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
The only possible explanation so far is that I might have to turn many of the theme functions in a plugin (and I'd give them a proper oop organisation )
Dec
9
comment While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
ok I just did; somehow it's like internal functions of wordpress and some plugins pass, but some defined in my theme don't... although I can't explain it since they are all included in functions.php and from PHP they work
Dec
9
revised While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
added 340 characters in body
Dec
9
revised While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
added 103 characters in body
Dec
9
comment While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
the function used as ajax callback is the simplest ever: $stuff = some_php_function(); wp_send_json_success($stuff); I don't think I can post the whole php function as it's very very long - but this function is also used server side and doesn't return any error
Dec
9
comment While doing ajax, WordPress returning internal server error 500 and stating that my theme functions are undefined
the ajax url is in a variable printed after using wp localize script immediately after my script is enqueued - I double checked that from console.log and it's fine