Why the add_action() function not work in member function in wordpress?
Answer Posted / Dharm Raj Singh
The `add_action()` function does not work within a class's method (member function) directly. Instead, you should register your action or filter outside of the method and then call the method inside the callback function.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers