Skip to main content
4 events
when toggle format what by license comment
Apr 29, 2019 at 13:41 comment added Bayanaa I copied and past your 2 example into that file but still cannot call function from functions.php and when page called from ajax it will stop and no response at require_once wp-load.php. Thats why I debugged where it will go but ABSPATH didn't defined and stopped there. I didn't change anything.
Apr 29, 2019 at 12:13 comment added Pat_Morita "I debugged wp-load.php file but it failed on ABSPATH defines" ... really...? Never touch the core! Including wp-load is an everyday job. You must have a typo or wrong path. In your example the ".php" extension is missing in the require statement. Otherwise debug the pathes.
Apr 29, 2019 at 7:37 comment added Bayanaa Thanks for the answer. Q answer is : yes i have tons of php file in theme and my theme has a functions.php. Functions.php includes many functions like connect to API etc and all works for page-templates, core and libraries folders, but other folders cannot access to functions.php functions. I tried to required wp-load.php but it gaves me 500 error. I debugged wp-load.php file but it failed on ABSPATH defines. I still finding better way to use a function from functions.php for everywhere.
Apr 26, 2019 at 5:01 history answered Pat_Morita CC BY-SA 4.0