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 |
|---|---|
| 1297 | <?php echo $errors['upload_notice']; ?> |
| 1298 | <?php } ?> |
| 1299 | </div> |
| 1300 | <div id="media-upload-error"> |
| 1301 | <?php if (isset($errors['upload_error']) && is_wp_error($errors['upload_error'])) { ?> |
| 1302 | <?php echo $errors['upload_error']->get_error_message(); ?> |
| 1303 | <?php } ?> |
| 1304 | </div> |
| 1305 | |
| 1306 | <?php do_action('pre-upload-ui'); ?> |
| 1307 | |
| 1308 | <?php if ( $flash ) : ?> |
| 1309 | <script type="text/javascript"> |
| 1310 | //<![CDATA[ |
| 1311 | var swfu; |
| 1312 | SWFUpload.onload = function() { |
| 1313 | var settings = { |
| 1314 | button_text: '<span class="button"><?php _e('Select Files'); ?></span>', |
| 1315 | button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif; }', |