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 |
|---|---|
| 898 | |
| 899 | <label class="setting alt-text has-description"> |
| 900 | <span><?php _e( 'Alternative Text' ); ?></span> |
| 901 | <input type="text" data-setting="alt" aria-describedby="alt-text-description" /> |
| 902 | </label> |
| 903 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
| 904 | |
| 905 | <?php |
| 906 | /** This filter is documented in wp-admin/includes/media.php */ |
| 907 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
| 908 | ?> |
| 909 | <label class="setting caption"> |
| 910 | <span><?php _e( 'Caption' ); ?></span> |
| 911 | <textarea data-setting="caption" /> |
| 912 | </label> |
| 913 | <?php endif; ?> |
| 914 | |
| 915 | <div class="setting align"> |
| 916 | <span><?php _e( 'Align' ); ?></span> |
| Line | Code |
| 965 | <div class="column-settings"> |
| 966 | <label class="setting alt-text has-description"> |
| 967 | <span><?php _e( 'Alternative Text' ); ?></span> |
| 968 | <input type="text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" /> |
| 969 | </label> |
| 970 | <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> |
| 971 | |
| 972 | <?php |
| 973 | /** This filter is documented in wp-admin/includes/media.php */ |
| 974 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
| 975 | ?> |
| 976 | <label class="setting caption"> |
| 977 | <span><?php _e( 'Caption' ); ?></span> |
| 978 | <textarea data-setting="caption">{{ data.model.caption }}</textarea> |
| 979 | </label> |
| 980 | <?php endif; ?> |
| 981 | |
| 982 | <h2><?php _e( 'Display Settings' ); ?></h2> |
| 983 | <div class="setting align"> |