WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 1229 | global $type, $tab; |
| 1230 | |
| 1231 | $flash_action_url = admin_url('async-upload.php'); |
| 1232 | |
| 1233 | // If Mac and mod_security, no Flash. :( |
| 1234 | $flash = true; |
| 1235 | if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') ) |
| 1236 | $flash = false; |
| 1237 | |
| 1238 | $flash = apply_filters('flash_uploader', $flash); |
| 1239 | $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0; |
| 1240 | |
| 1241 | ?> |
| 1242 | <div id="media-upload-notice"> |
| 1243 | <?php if (isset($errors['upload_notice']) ) { ?> |
| 1244 | <?php echo $errors['upload_notice']; ?> |
| 1245 | <?php } ?> |
| 1246 | </div> |
| 1247 | <div id="media-upload-error"> |