I'm trying to wrap my head around the update_{$meta_type}_metadata
filter, in order to modify both post and user metadata before database insertion.
After reading the docs and the core, it seems to me the filter must return null
for the add_metadata
function to continue. However, this means it is impossible to filter the $meta_value
since returning a non-null value short-circuits the function.
What am I missing here? And, more generally, what is the point of having the filter at all when it can only return null
?