Access a field before saving

Support General Access a field before savingResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18099
    maybeadevmaybeadev
    Participant

    Hi:

    I could have sworn that there was a hook to access a field's data before saving it. But I can't find it right now. (I need to be able to access settings fields to encrypt them before they are saved into the database.) Is that possible and, if so, is there a code example showing 'before-save' field access anywhere?

    Thanks.

    #18107
    Anh TranAnh Tran
    Keymaster

    Hi,

    If you need to modify field value before saving into the DB, please use rwmb_{$field_id}_value filter or use rwmb_after_save_field action.

    #18109
    maybeadevmaybeadev
    Participant

    Hi - Thanks. I actually found it about an hour ago and was about to update this topic.

    Thanks. We can close this out now.

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