WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
This hook occurs 2 times in this file.
Line | Code |
---|---|
1072 |
|
1073 | <span class="setting alt-text has-description"> |
1074 | <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> |
1075 | <textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea> |
1076 | </span> |
1077 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
1078 |
|
1079 | <?php |
1080 | /** This filter is documented in wp-admin/includes/media.php */ |
1081 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
1082 | ?> |
1083 | <span class="setting caption"> |
1084 | <label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label> |
1085 | <textarea id="embed-image-settings-caption" data-setting="caption"></textarea> |
1086 | </span> |
1087 | <?php endif; ?> |
1088 |
|
1089 | <fieldset class="setting-group"> |
1090 | <legend class="name"><?php _e( 'Align' ); ?></legend> |
Line | Code |
1135 | <div class="column-settings"> |
1136 | <span class="setting alt-text has-description"> |
1137 | <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> |
1138 | <textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea> |
1139 | </span> |
1140 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
1141 |
|
1142 | <?php |
1143 | /** This filter is documented in wp-admin/includes/media.php */ |
1144 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
1145 | ?> |
1146 | <span class="setting caption"> |
1147 | <label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label> |
1148 | <textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea> |
1149 | </span> |
1150 | <?php endif; ?> |
1151 |
|
1152 | <h2><?php _e( 'Display Settings' ); ?></h2> |
1153 | <fieldset class="setting-group"> |