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
1315                button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana,sans-serif; }',
1316                button_height: "24",
1317                button_width: "132",
1318                button_text_top_padding: 1,
1319                button_image_url: '<?php echo includes_url('images/upload.png'); ?>',
1320                button_placeholder_id: "flash-browse-button",
1321                upload_url : "<?php echo esc_attr( $flash_action_url ); ?>",
1322                flash_url : "<?php echo includes_url('js/swfupload/swfupload.swf'); ?>",
1323                file_post_name: "async-upload",
1324                file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>",
1325                post_params : {
1326                     "post_id" : "<?php echo $post_id; ?>",
1327                     "auth_cookie" : "<?php if ( is_ssl() ) echo $_COOKIE[SECURE_AUTH_COOKIE]; else echo $_COOKIE[AUTH_COOKIE]; ?>",
1328                     "_wpnonce" : "<?php echo wp_create_nonce('media-form'); ?>",
1329                     "type" : "<?php echo $type; ?>",
1330                     "tab" : "<?php echo $tab; ?>",
1331                     "short" : "1"
1332                },
1333                file_size_limit : "<?php echo wp_max_upload_size(); ?>b",