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 |
---|---|
271 | <div class="post-upload-ui" id="post-upload-info"> |
272 | <?php |
273 | /** This action is documented in wp-admin/includes/media.php */ |
274 | do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
275 | /** This action is documented in wp-admin/includes/media.php */ |
276 | do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
277 |
|
278 | if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) { |
279 | /** This action is documented in wp-admin/includes/media.php */ |
280 | do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
281 | add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ); |
282 | } else { |
283 | /** This action is documented in wp-admin/includes/media.php */ |
284 | do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores |
285 | } |
286 |
|
287 | $max_upload_size = wp_max_upload_size(); |
288 | if ( ! $max_upload_size ) { |
289 | $max_upload_size = 0; |
290 | } |
291 | ?> |
292 |
|
293 | <p class="max-upload-size"> |