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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
172 | <div class="post-upload-ui"> |
173 | <?php |
174 | /** This action is documented in wp-admin/includes/media.php */ |
175 | do_action( 'pre-upload-ui' ); |
176 | /** This action is documented in wp-admin/includes/media.php */ |
177 | do_action( 'pre-plupload-upload-ui' ); |
178 |
|
179 | if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) { |
180 | /** This action is documented in wp-admin/includes/media.php */ |
181 | do_action( 'post-plupload-upload-ui' ); |
182 | add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ); |
183 | } else { |
184 | /** This action is documented in wp-admin/includes/media.php */ |
185 | do_action( 'post-plupload-upload-ui' ); |
186 | } |
187 |
|
188 | $upload_size_unit = $max_upload_size = wp_max_upload_size(); |
189 | $byte_sizes = array( 'KB', 'MB', 'GB' ); |
190 |
|
191 | for ( $u = -1; $upload_size_unit > 1024 && $u < count( $byte_sizes ) - 1; $u++ ) { |
192 | $upload_size_unit /= 1024; |
193 | } |
194 |
|