object type from rwmb_frontend_after_save_post

Support MB Frontend Submission object type from rwmb_frontend_after_save_postResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43323
    pluginovenpluginoven
    Participant

    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?

    #43324
    pluginovenpluginoven
    Participant

    update, nevermind, found rwmb_profile_after_process

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.