add_action / do_action not working in a class ?
-
I’m trying to add a post meta box. The data I want to add in the post meta is calculated within a class, some of the data is private viriables so that I can’t make the meta box outside the class. But, if try to do_action or add_action within the class, I get error message.
Need help to sort out how to add post meta box which contains private viariable in a class.
Thanks!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘add_action / do_action not working in a class ?’ is closed to new replies.