Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: pre-upload-ui

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1244      <?php echo $errors['upload_notice']; ?>
1245 <?php } ?>
1246 </div>
1247 <div id="media-upload-error">
1248 <?php if (isset($errors['upload_error']) && is_wp_error($errors['upload_error'])) { ?>
1249      <?php echo $errors['upload_error']->get_error_message(); ?>
1250 <?php } ?>
1251 </div>
1252
1253 <?php do_action('pre-upload-ui'); ?>
1254
1255 <?php if ( $flash ) : ?>
1256 <script type="text/javascript">
1257 <!--
1258 SWFUpload.onload = function() {
1259      swfu = new SWFUpload({
1260                button_text: '<span class="button"><?php _e('Select Files'); ?></span>',
1261                button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif; }',
1262                button_height: "24",