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
826      </script>
827
828      <script type="text/html" id="tmpl-embed-image-settings">
829           <div class="thumbnail">
830                <img src="{{ data.model.url }}" draggable="false" />
831           </div>
832
833           <?php
834           /** This filter is documented in wp-admin/includes/media.php */
835           if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
836                <label class="setting caption">
837                     <span><?php _e('Caption'); ?></span>
838                     <textarea data-setting="caption" />
839                </label>
840           <?php endif; ?>
841
842           <label class="setting alt-text">
843                <span><?php _e('Alt Text'); ?></span>
844                <input type="text" data-setting="alt" />
 
Line Code
891                                         <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" />
892                                         <input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" />
893                                    </div>
894                               <# } #>
895                          </div>
896                     </div>
897                     <div class="column-settings">
898                          <?php
899                          /** This filter is documented in wp-admin/includes/media.php */
900                          if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
901                               <label class="setting caption">
902                                    <span><?php _e('Caption'); ?></span>
903                                    <textarea data-setting="caption">{{ data.model.caption }}</textarea>
904                               </label>
905                          <?php endif; ?>
906
907                          <label class="setting alt-text">
908                               <span><?php _e('Alternative Text'); ?></span>
909                               <input type="text" data-setting="alt" value="{{ data.model.alt }}" />