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 |
---|---|
765 | global $type, $tab; |
766 |
|
767 | $flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php"; |
768 |
|
769 | // If Mac and mod_security, no Flash. :( |
770 | $flash = true; |
771 | if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') ) |
772 | $flash = false; |
773 |
|
774 | $flash = apply_filters('flash_uploader', $flash); |
775 | $post_id = intval($_REQUEST['post_id']); |
776 |
|
777 | ?> |
778 | <input type='hidden' name='post_id' value='<?php echo $post_id; ?>' /> |
779 | <div id="media-upload-notice"> |
780 | <?php if (isset($errors['upload_notice']) ) { ?> |
781 | <?php echo $errors['upload_notice']; ?> |
782 | <?php } ?> |
783 | </div> |