The rwmb_frontend_after_save_post action passes the $object. From the documentation, the following methods are passed with the object:
$post_type, $post_id, $fields, $config
However, since the plugin works for both posts and users, what is the best practice to determine which object type is being saved?
The $object->config
holds the shortcode attributes, but it's not the attributes that tell us if a post or user is being saved, but rather the shortcode itself:
post: mb_frontend_form
user. mb_user_profile_info
Is there a recommended method of doing this, or do we have to create a new rwmb_frontend_after_save_user
action?