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