Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: disable_captions

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
562      </script>
563
564      <script type="text/html" id="tmpl-embed-image-settings">
565           <div class="thumbnail">
566                <img src="{{ data.model.url }}" draggable="false" />
567           </div>
568
569           <?php
570           /** This filter is documented in wp-admin/includes/media.php */
571           if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
572                <label class="setting caption">
573                     <span><?php _e('Caption'); ?></span>
574                     <textarea data-setting="caption" />
575                </label>
576           <?php endif; ?>
577
578           <label class="setting alt-text">
579                <span><?php _e('Alt Text'); ?></span>
580                <input type="text" data-setting="alt" />
 
Line Code
656                                         <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" />
657                                         <input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" />
658                                    </div>
659                               <# } #>
660                          </div>
661                     </div>
662                     <div class="column-settings">
663                          <?php
664                          /** This filter is documented in wp-admin/includes/media.php */
665                          if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
666                               <label class="setting caption">
667                                    <span><?php _e('Caption'); ?></span>
668                                    <textarea data-setting="caption">{{ data.model.caption }}</textarea>
669                               </label>
670                          <?php endif; ?>
671
672                          <label class="setting alt-text">
673                               <span><?php _e('Alternative Text'); ?></span>
674                               <input type="text" data-setting="alt" value="{{ data.model.alt }}" />