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 |
|---|---|
| 779 | </script> |
| 780 | |
| 781 | <script type="text/html" id="tmpl-embed-image-settings"> |
| 782 | <div class="thumbnail"> |
| 783 | <img src="{{ data.model.url }}" draggable="false" /> |
| 784 | </div> |
| 785 | |
| 786 | <?php |
| 787 | /** This filter is documented in wp-admin/includes/media.php */ |
| 788 | if ( ! apply_filters( 'disable_captions', '' ) ) : ?> |
| 789 | <label class="setting caption"> |
| 790 | <span><?php _e('Caption'); ?></span> |
| 791 | <textarea data-setting="caption" /> |
| 792 | </label> |
| 793 | <?php endif; ?> |
| 794 | |
| 795 | <label class="setting alt-text"> |
| 796 | <span><?php _e('Alt Text'); ?></span> |
| 797 | <input type="text" data-setting="alt" /> |
| Line | Code |
| 844 | <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" /> |
| 845 | <input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" /> |
| 846 | </div> |
| 847 | <# } #> |
| 848 | </div> |
| 849 | </div> |
| 850 | <div class="column-settings"> |
| 851 | <?php |
| 852 | /** This filter is documented in wp-admin/includes/media.php */ |
| 853 | if ( ! apply_filters( 'disable_captions', '' ) ) : ?> |
| 854 | <label class="setting caption"> |
| 855 | <span><?php _e('Caption'); ?></span> |
| 856 | <textarea data-setting="caption">{{ data.model.caption }}</textarea> |
| 857 | </label> |
| 858 | <?php endif; ?> |
| 859 | |
| 860 | <label class="setting alt-text"> |
| 861 | <span><?php _e('Alternative Text'); ?></span> |
| 862 | <input type="text" data-setting="alt" value="{{ data.model.alt }}" /> |