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