Getting Code error

I am adding code in my website theme header getting this error. can any help me to fix this issue.

Uncaught Error: Call to undefined function add_action() in /home/8YkNU8/prog.php:3 Stack trace: #0 {main} thrown in /home/8YkNU8/prog.php on line 3

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.