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 |
---|---|
2647 |
|
2648 | /** |
2649 | * {@internal Missing Short Description}} |
2650 | * |
2651 | * @since unknown |
2652 | * |
2653 | * @param unknown_type $action |
2654 | */ |
2655 | function wp_import_upload_form( $action ) { |
2656 | $bytes = apply_filters( 'import_upload_size_limit', wp_max_upload_size() ); |
2657 | $size = wp_convert_bytes_to_hr( $bytes ); |
2658 | ?> |
2659 | <form enctype="multipart/form-data" id="import-upload-form" method="post" action="<?php echo attribute_escape($action) ?>"> |
2660 | <p> |
2661 | <?php wp_nonce_field('import-upload'); ?> |
2662 | <label for="upload"><?php _e( 'Choose a file from your computer:' ); ?></label> (<?php printf( __('Maximum size: %s' ), $size ); ?>) |
2663 | <input type="file" id="upload" name="import" size="25" /> |
2664 | <input type="hidden" name="action" value="save" /> |
2665 | <input type="hidden" name="max_file_size" value="<?php echo $bytes; ?>" /> |