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