[ad_1]
Hi @michalrama,
WPCode stores code snippets in the database so there’s no direct URL for you to access.
You won’t be able to access PHP files that way from JavaScript in WordPress. You will need to use AJAX in order to execute PHP scripts from JavaScript and use their output.
WordPress has a pattern that I recommend using when trying to achieve this but you will need to understand how AJAX requests work in JavaScript, you can read more here: https://developer.projectdmc.org/plugins/javascript/ajax/
