Skip to content
Advertisement

i am adding add_action inside a model of wordpress plugin but it is showing error unexpected identifier

this is my model file

JavaScript

i am facing error that is:

JavaScript

Advertisement

Answer

Your class definition is not correct. your not defining the scope of the functions, and you need to refer back to the class in the add action

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement