Skip to main content
5 events
when toggle format what by license comment
Apr 10, 2019 at 18:46 comment added Qaisar Feroz SEE this
Apr 10, 2019 at 18:44 history edited Qaisar Feroz CC BY-SA 4.0
added 44 characters in body
Apr 10, 2019 at 18:42 comment added Qaisar Feroz It depends upon the setup of staging and production environment. You can try ` ABSPATH.'xxx_insert.php'` where ABSPATH refers to directory of your WordPress installation. This will work only if WP is loaded. Or specify the full path instead of relative path. Note: WordPress is a CMS, it's supposed to handle all the requests made to it, not individual files in a plugin or theme.
Apr 10, 2019 at 18:20 comment added David D'Lima Guys thanks for replying. In my staging environment, putting the file in the root i.e. public_html/staging worked fine . All I did was call the file as /xxx_insert.php. The same does not work in production Any clue why?.
Apr 10, 2019 at 18:16 history answered Qaisar Feroz CC BY-SA 4.0