Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: post-plupload-upload-ui

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

This hook occurs 2 times in this file.

Line Code
266                <div class="post-upload-ui">
267                     <?php
268                     /** This action is documented in wp-admin/includes/media.php */
269                     do_action( 'pre-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
270                     /** This action is documented in wp-admin/includes/media.php */
271                     do_action( 'pre-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
272
273                     if ( 10 === remove_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' ) ) {
274                          /** This action is documented in wp-admin/includes/media.php */
275                          do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
276                          add_action( 'post-plupload-upload-ui', 'media_upload_flash_bypass' );
277                     } else {
278                          /** This action is documented in wp-admin/includes/media.php */
279                          do_action( 'post-plupload-upload-ui' ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
280                     }
281
282                     $max_upload_size = wp_max_upload_size();
283                     if ( ! $max_upload_size ) {
284                          $max_upload_size = 0;
285                     }
286                     ?>
287
288                     <p class="max-upload-size">