Created
August 22, 2013 01:24
-
-
Save brichards/6302232 to your computer and use it in GitHub Desktop.
Dynamically-named Filter, with @return statement
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 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