I came here looking for an answer to this same error. For what it is worth, I resolved the issue by wrapping my functionality into a function and adding it to the init
action.
I came here looking for an answer to this same error. For what it is worth, I resolved the issue by wrapping my functionality into a function and adding it to the init
action.