Support

Account

Home Forums Bug Reports acf/update_value filters working improperly Reply To: acf/update_value filters working improperly

  • I suspect there is a miscommunication about what ‘original’ means in the context of this filter.

    The purpose of the filter is to modify the value that needs to be saved into the database, after input, before saving it in the database. For instance to sanitise it, or do some normalisation on it (i.e. if inputing hashtags, change all characters to lowercase).

    I believe ‘original’ is the original value as has been inputted by the user, before any other plugins have changed the value using this filter. Not the value it was before the user is changing it (i.e. the value currently in the database).

    Is that correct @hube2 ?

    Perhaps changing the name from ‘original’ into ‘first’ or ‘original_input’ could avoid confusion.