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