- This topic has 2 replies, 2 voices, and was last updated 4 years, 3 months ago by .
Hey Anh Tran,
you're providing several hooks inside the MB_Frontend_Post class which are basically fine. But I've got the following problem:
With this hooks you're passing $data (the instance of the class itself), but due to the fact that all functions and variables are private, I can't access theme when applying filter/action.
In my current case, I want use
rwmb_frontend_after_save_postin order to redirect to the post after updating it. Therefore I could make us of the var $post_id which holds the ID, but as I said, it's not accessible:
PHP Fatal error: Uncaught Error: Cannot access private property MB_Frontend_Post::$post_id
I there a trick I'm not aware of?
- The topic ‘Using hooks data inside MB_Frontend_Post’ is closed to new replies.