Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Dynamically-named Filter, with @return statement
* Return the ID of the uploaded attachment of a given type
* @since 2.5.0
* @param int $id The uploaded attachment ID
* @return int The uploaded attachment ID
echo apply_filters("async_upload_{$type}", $id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.