Skip to content

Instantly share code, notes, and snippets.

@brichards
Last active December 20, 2015 09:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brichards/6108862 to your computer and use it in GitHub Desktop.
Save brichards/6108862 to your computer and use it in GitHub Desktop.
Dynamically-named Filter
<?php
/**
* Return the ID of the uploaded attachment of a given type
*
* @since 2.5.0
*
* @param int $id 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