Save field value disabled doesnt send to $_POST

Support MB Frontend Submission Save field value disabled doesnt send to $_POST

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #42212
    shmaltzshmaltz
    Participant

    Since the latest update, if I have fields with "Save field value" disabled, I can't access the field data in the $_POST object anymore, when it worked before.

    I am using the hook rwmb_frontend_after_save_postand rwmb_frontend_update_post_data.

    I am using $_POST['field_id'] and $data['field_id'].

    #42231
    PeterPeter
    Moderator

    Hello,

    I use the code below to print all elements of the $_POST object and still can access the field value as well.

    add_action( 'rwmb_frontend_after_save_post', function( $object ) {
        echo "<pre>";
        print_r( $_POST[] );
        echo "</pre>";
        die('12345');
    } );
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.