Custom Fields
Re-Envisioned
Support General Access a field before saving

  • Creator
    Topic
  • #18099
    Resolved elindydotcom
    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #18107
    Anh 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
    elindydotcom
    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 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.