Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: upload_file_glob

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
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",
1263                button_width: "132",
1264                button_image_url: '<?php echo includes_url('images/upload.png'); ?>',
1265                button_placeholder_id: "flash-browse-button",
1266                upload_url : "<?php echo attribute_escape( $flash_action_url ); ?>",
1267                flash_url : "<?php echo includes_url('js/swfupload/swfupload.swf'); ?>",
1268                file_post_name: "async-upload",
1269                file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>",
1270                post_params : {
1271                     "post_id" : "<?php echo $post_id; ?>",
1272                     "auth_cookie" : "<?php if ( is_ssl() ) echo $_COOKIE[SECURE_AUTH_COOKIE]; else echo $_COOKIE[AUTH_COOKIE]; ?>",
1273                     "_wpnonce" : "<?php echo wp_create_nonce('media-form'); ?>",
1274                     "type" : "<?php echo $type; ?>",
1275                     "tab" : "<?php echo $tab; ?>",
1276                     "short" : "1"
1277                },
1278                file_size_limit : "<?php echo wp_max_upload_size(); ?>b",