I figured out what was causing the problem for me. I was trying to call add_action() from the main functions.php file in my WP root. Stopped giving me trouble when I moved the call to the functions.php file inside my current theme.
Thanks for posting the follow-up escapist. I was having the same issue.
Most of the tutorials you read online assume you would know that when they talk about functions.php that it is the one residing in your theme folder.
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Call to undefined function add_action()’ is closed to new replies.