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 |
---|---|
1014 |
|
1015 | <span class="setting alt-text has-description"> |
1016 | <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> |
1017 | <textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea> |
1018 | </span> |
1019 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
1020 |
|
1021 | <?php |
1022 | /** This filter is documented in wp-admin/includes/media.php */ |
1023 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
1024 | ?> |
1025 | <span class="setting caption"> |
1026 | <label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label> |
1027 | <textarea id="embed-image-settings-caption" data-setting="caption"></textarea> |
1028 | </span> |
1029 | <?php endif; ?> |
1030 |
|
1031 | <fieldset class="setting-group"> |
1032 | <legend class="name"><?php _e( 'Align' ); ?></legend> |
Line | Code |
1077 | <div class="column-settings"> |
1078 | <span class="setting alt-text has-description"> |
1079 | <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> |
1080 | <textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea> |
1081 | </span> |
1082 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
1083 |
|
1084 | <?php |
1085 | /** This filter is documented in wp-admin/includes/media.php */ |
1086 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
1087 | ?> |
1088 | <span class="setting caption"> |
1089 | <label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label> |
1090 | <textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea> |
1091 | </span> |
1092 | <?php endif; ?> |
1093 |
|
1094 | <h2><?php _e( 'Display Settings' ); ?></h2> |
1095 | <fieldset class="setting-group"> |