Forum in maintenance, we will back soon π
Hook generator trouble...
I followed all the step, in the video. Even I took your code.Β
I verified my PHP function to connect to OpenAI and is working!!
Β
But when I got to java script I GOT STUCK
I've added: "
// Add CORS headers header('Access-Control-Allow-Origin: *'); // Allows all origins header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); // Specifies the allowed methods header('Access-Control-Allow-Headers: Content-Type, Authorization'); // Specifies the allowed headers
"
"// Add CORS headers
header('Access-Control-Allow-Origin: *'); // Allows all origins
header('Access-Control-Allow-Methods: GET, POST, OPTIONS'); // Specifies the allowed methods
header('Access-Control-Allow-Headers: Content-Type, Authorization'); // Specifies the allowed headers "
Β to my function in PHP code snippet and still not working...
Β
My web page URL is: https://claudiuudroiu.ro/hook-generator/
Β
I got headache...
Β
please help HASAN!
Β
THANK YOU!!

Your script.js file isn't being located in the file system. You should move it to the wp-includes/js/ directory.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack

Did you add the JS Snippet with the HTML and CSS?Β
and make sure to change the URL to your site in the snippet