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 |
|---|---|
| 953 | |
| 954 | <span class="setting alt-text has-description"> |
| 955 | <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> |
| 956 | <input type="text" id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description" /> |
| 957 | </span> |
| 958 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
| 959 | |
| 960 | <?php |
| 961 | /** This filter is documented in wp-admin/includes/media.php */ |
| 962 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
| 963 | ?> |
| 964 | <span class="setting caption"> |
| 965 | <label for="embed-image-settings-caption" class="name"><?php _e( 'Caption' ); ?></label> |
| 966 | <textarea id="embed-image-settings-caption" data-setting="caption" /> |
| 967 | </span> |
| 968 | <?php endif; ?> |
| 969 | |
| 970 | <fieldset class="setting-group"> |
| 971 | <legend class="name"><?php _e( 'Align' ); ?></legend> |
| Line | Code |
| 1016 | <div class="column-settings"> |
| 1017 | <span class="setting alt-text has-description"> |
| 1018 | <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> |
| 1019 | <input type="text" id="image-details-alt-text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" /> |
| 1020 | </span> |
| 1021 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
| 1022 | |
| 1023 | <?php |
| 1024 | /** This filter is documented in wp-admin/includes/media.php */ |
| 1025 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
| 1026 | ?> |
| 1027 | <span class="setting caption"> |
| 1028 | <label for="image-details-caption" class="name"><?php _e( 'Caption' ); ?></label> |
| 1029 | <textarea id="image-details-caption" data-setting="caption">{{ data.model.caption }}</textarea> |
| 1030 | </span> |
| 1031 | <?php endif; ?> |
| 1032 | |
| 1033 | <h2><?php _e( 'Display Settings' ); ?></h2> |
| 1034 | <fieldset class="setting-group"> |