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 |
---|---|
819 | </script> |
820 |
|
821 | <script type="text/html" id="tmpl-embed-image-settings"> |
822 | <div class="thumbnail"> |
823 | <img src="{{ data.model.url }}" draggable="false" alt="" /> |
824 | </div> |
825 |
|
826 | <?php |
827 | /** This filter is documented in wp-admin/includes/media.php */ |
828 | if ( ! apply_filters( 'disable_captions', '' ) ) : ?> |
829 | <label class="setting caption"> |
830 | <span><?php _e('Caption'); ?></span> |
831 | <textarea data-setting="caption" /> |
832 | </label> |
833 | <?php endif; ?> |
834 |
|
835 | <label class="setting alt-text"> |
836 | <span><?php _e('Alt Text'); ?></span> |
837 | <input type="text" data-setting="alt" /> |
Line | Code |
884 | <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" /> |
885 | <input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" /> |
886 | </div> |
887 | <# } #> |
888 | </div> |
889 | </div> |
890 | <div class="column-settings"> |
891 | <?php |
892 | /** This filter is documented in wp-admin/includes/media.php */ |
893 | if ( ! apply_filters( 'disable_captions', '' ) ) : ?> |
894 | <label class="setting caption"> |
895 | <span><?php _e('Caption'); ?></span> |
896 | <textarea data-setting="caption">{{ data.model.caption }}</textarea> |
897 | </label> |
898 | <?php endif; ?> |
899 |
|
900 | <label class="setting alt-text"> |
901 | <span><?php _e('Alternative Text'); ?></span> |
902 | <input type="text" data-setting="alt" value="{{ data.model.alt }}" /> |