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 |
|---|---|
| 963 | |
| 964 | <span class="setting alt-text has-description"> |
| 965 | <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> |
| 966 | <input type="text" id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description" /> |
| 967 | </span> |
| 968 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
| 969 | |
| 970 | <?php |
| 971 | /** This filter is documented in wp-admin/includes/media.php */ |
| 972 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
| 973 | ?> |
| 974 | <span class="setting caption"> |
| 975 | <label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label> |
| 976 | <textarea id="embed-image-settings-caption" data-setting="caption" /> |
| 977 | </span> |
| 978 | <?php endif; ?> |
| 979 | |
| 980 | <fieldset class="setting-group"> |
| 981 | <legend class="name"><?php _e( 'Align' ); ?></legend> |
| Line | Code |
| 1026 | <div class="column-settings"> |
| 1027 | <span class="setting alt-text has-description"> |
| 1028 | <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> |
| 1029 | <input type="text" id="image-details-alt-text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" /> |
| 1030 | </span> |
| 1031 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
| 1032 | |
| 1033 | <?php |
| 1034 | /** This filter is documented in wp-admin/includes/media.php */ |
| 1035 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
| 1036 | ?> |
| 1037 | <span class="setting caption"> |
| 1038 | <label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label> |
| 1039 | <textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea> |
| 1040 | </span> |
| 1041 | <?php endif; ?> |
| 1042 | |
| 1043 | <h2><?php _e( 'Display Settings' ); ?></h2> |
| 1044 | <fieldset class="setting-group"> |