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 |
---|---|
1272 | global $type, $tab; |
1273 |
|
1274 | $flash_action_url = admin_url('async-upload.php'); |
1275 |
|
1276 | // If Mac and mod_security, no Flash. :( |
1277 | $flash = true; |
1278 | if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && apache_mod_loaded('mod_security') ) |
1279 | $flash = false; |
1280 |
|
1281 | $flash = apply_filters('flash_uploader', $flash); |
1282 | $post_id = isset($_REQUEST['post_id']) ? intval($_REQUEST['post_id']) : 0; |
1283 |
|
1284 | ?> |
1285 | <script type="text/javascript"> |
1286 | //<![CDATA[ |
1287 | var uploaderMode = 0; |
1288 | jQuery(document).ready(function($){ |
1289 | uploaderMode = getUserSetting('uploader'); |
1290 | $('.upload-html-bypass a').click(function(){deleteUserSetting('uploader');uploaderMode=0;swfuploadPreLoad();return false;}); |