You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are several generic functions in WordPress that return a value of the same type as passed in. Here's my list so far:
addslashes_gpc()
map_deep()
rawurlencode_deep()
sanitize_category()
sanitize_post()
sanitize_term()
stripslashes_deep()
urldecode_deep()
urlencode_deep()
wp_slash()
wp_unslash()
We should be able to come up with a dynamic return type extension which makes the function behave like a generic and return the same type as passed in.