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
1067
1068           <span class="setting alt-text has-description">
1069                <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label>
1070                <textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea>
1071           </span>
1072           <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
1073
1074           <?php
1075           /** This filter is documented in wp-admin/includes/media.php */
1076           if ( ! apply_filters( 'disable_captions', '' ) ) :
1077                ?>
1078                <span class="setting caption">
1079                     <label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label>
1080                     <textarea id="embed-image-settings-caption" data-setting="caption"></textarea>
1081                </span>
1082           <?php endif; ?>
1083
1084           <fieldset class="setting-group">
1085                <legend class="name"><?php _e( 'Align' ); ?></legend>
 
Line Code
1130                     <div class="column-settings">
1131                          <span class="setting alt-text has-description">
1132                               <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label>
1133                               <textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea>
1134                          </span>
1135                          <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
1136
1137                          <?php
1138                          /** This filter is documented in wp-admin/includes/media.php */
1139                          if ( ! apply_filters( 'disable_captions', '' ) ) :
1140                               ?>
1141                               <span class="setting caption">
1142                                    <label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label>
1143                                    <textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea>
1144                               </span>
1145                          <?php endif; ?>
1146
1147                          <h2><?php _e( 'Display Settings' ); ?></h2>
1148                          <fieldset class="setting-group">