uchavarkar
Forum Replies Created
-
Hi @zackkrida, would love to hear your expertise on this topic. Awaiting your reply.
Thank youI am not following the PHP OOP as of yet. I have one main plugin.php file, which contains the main class of my plugin. This is where, I enqueue javascript file (plugin folder/assets/plugin.js) , which contains the ajax request which will trigger once the button is pressed to run the PHP file (plugin folder/run-script.php) which will call the python script (plugin folder/assets/python.py) . All custom API endpoints are mentioned in (plugin folder/includes/wp-admin-api.php)
I want to know where should I embed the code for adding the button (the one near the publish button), and how should I run the HTML code within it?
I followed some of the links below, but they did not work.
https://code.tutsplus.com/tutorials/how-to-use-php-in-html-code–cms-34378
https://stackoverflow.com/questions/18140270/how-to-write-html-code-inside-php-i-want-write-html-code-within-the-php-sc- This reply was modified 5 years, 2 months ago by uchavarkar.
- This reply was modified 5 years, 2 months ago by uchavarkar.
- This reply was modified 5 years, 2 months ago by uchavarkar.
- This reply was modified 5 years, 2 months ago by uchavarkar.
- This reply was modified 5 years, 2 months ago by uchavarkar.
Thanks @zackkrida I am trying the links and guide you have provided. I am not able to embed the HTML code in the right file. Do you have any suggestions for that ?
Thank you for the help !!