Hi there.
i am trying to hook on: add_action('cred_save_data', [__CLASS__, "save_data"]);
when save_data is called it gets passed only one parameter instead of 2. I get only the post id. No form data is there.
This is what i use. Instead of a function i use a static public function of my class.
My function is called but with only the post_id as a parameter.
Is it because of any Access control rules?
I'm not sure and that is custom programming which is beyond the scope of our support policy. Maybe the form_data attribute will be private and used within the Toolset hook.
You should use standard method as shared with the Doc and check if that help you to resolve your issue.