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
1058
1059           <span class="setting alt-text has-description">
1060                <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label>
1061                <textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea>
1062           </span>
1063           <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
1064
1065           <?php
1066           /** This filter is documented in wp-admin/includes/media.php */
1067           if ( ! apply_filters( 'disable_captions', '' ) ) :
1068                ?>
1069                <span class="setting caption">
1070                     <label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label>
1071                     <textarea id="embed-image-settings-caption" data-setting="caption"></textarea>
1072                </span>
1073           <?php endif; ?>
1074
1075           <fieldset class="setting-group">
1076                <legend class="name"><?php _e( 'Align' ); ?></legend>
 
Line Code
1121                     <div class="column-settings">
1122                          <span class="setting alt-text has-description">
1123                               <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label>
1124                               <textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea>
1125                          </span>
1126                          <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
1127
1128                          <?php
1129                          /** This filter is documented in wp-admin/includes/media.php */
1130                          if ( ! apply_filters( 'disable_captions', '' ) ) :
1131                               ?>
1132                               <span class="setting caption">
1133                                    <label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label>
1134                                    <textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea>
1135                               </span>
1136                          <?php endif; ?>
1137
1138                          <h2><?php _e( 'Display Settings' ); ?></h2>
1139                          <fieldset class="setting-group">