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
1396                button_text_style: '.button { text-align: center; font-weight: bold; font-family:"Lucida Grande",Verdana,Arial,"Bitstream Vera Sans",sans-serif; }',
1397                button_height: "24",
1398                button_width: "132",
1399                button_text_top_padding: 2,
1400                button_image_url: '<?php echo includes_url('images/upload.png'); ?>',
1401                button_placeholder_id: "flash-browse-button",
1402                upload_url : "<?php echo esc_attr( $flash_action_url ); ?>",
1403                flash_url : "<?php echo includes_url('js/swfupload/swfupload.swf'); ?>",
1404                file_post_name: "async-upload",
1405                file_types: "<?php echo apply_filters('upload_file_glob', '*.*'); ?>",
1406                post_params : {
1407                     "post_id" : "<?php echo $post_id; ?>",
1408                     "auth_cookie" : "<?php if ( is_ssl() ) echo $_COOKIE[SECURE_AUTH_COOKIE]; else echo $_COOKIE[AUTH_COOKIE]; ?>",
1409                     "logged_in_cookie": "<?php echo $_COOKIE[LOGGED_IN_COOKIE]; ?>",
1410                     "_wpnonce" : "<?php echo wp_create_nonce('media-form'); ?>",
1411                     "type" : "<?php echo $type; ?>",
1412                     "tab" : "<?php echo $tab; ?>",
1413                     "short" : "1"
1414                },