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
806      </script>
807
808      <script type="text/html" id="tmpl-embed-image-settings">
809           <div class="thumbnail">
810                <img src="{{ data.model.url }}" draggable="false" />
811           </div>
812
813           <?php
814           /** This filter is documented in wp-admin/includes/media.php */
815           if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
816                <label class="setting caption">
817                     <span><?php _e('Caption'); ?></span>
818                     <textarea data-setting="caption" />
819                </label>
820           <?php endif; ?>
821
822           <label class="setting alt-text">
823                <span><?php _e('Alt Text'); ?></span>
824                <input type="text" data-setting="alt" />
 
Line Code
871                                         <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" />
872                                         <input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" />
873                                    </div>
874                               <# } #>
875                          </div>
876                     </div>
877                     <div class="column-settings">
878                          <?php
879                          /** This filter is documented in wp-admin/includes/media.php */
880                          if ( ! apply_filters( 'disable_captions', '' ) ) : ?>
881                               <label class="setting caption">
882                                    <span><?php _e('Caption'); ?></span>
883                                    <textarea data-setting="caption">{{ data.model.caption }}</textarea>
884                               </label>
885                          <?php endif; ?>
886
887                          <label class="setting alt-text">
888                               <span><?php _e('Alternative Text'); ?></span>
889                               <input type="text" data-setting="alt" value="{{ data.model.alt }}" />