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 |
---|---|
878 | </script> |
879 |
|
880 | <script type="text/html" id="tmpl-embed-image-settings"> |
881 | <div class="thumbnail"> |
882 | <img src="{{ data.model.url }}" draggable="false" alt="" /> |
883 | </div> |
884 |
|
885 | <?php |
886 | /** This filter is documented in wp-admin/includes/media.php */ |
887 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
888 | ?> |
889 | <label class="setting caption"> |
890 | <span><?php _e( 'Caption' ); ?></span> |
891 | <textarea data-setting="caption" /> |
892 | </label> |
893 | <?php endif; ?> |
894 |
|
895 | <label class="setting alt-text"> |
896 | <span><?php _e( 'Alt Text' ); ?></span> |
Line | Code |
944 | <input type="button" class="edit-attachment button" value="<?php esc_attr_e( 'Edit Original' ); ?>" /> |
945 | <input type="button" class="replace-attachment button" value="<?php esc_attr_e( 'Replace' ); ?>" /> |
946 | </div> |
947 | <# } #> |
948 | </div> |
949 | </div> |
950 | <div class="column-settings"> |
951 | <?php |
952 | /** This filter is documented in wp-admin/includes/media.php */ |
953 | if ( ! apply_filters( 'disable_captions', '' ) ) : |
954 | ?> |
955 | <label class="setting caption"> |
956 | <span><?php _e( 'Caption' ); ?></span> |
957 | <textarea data-setting="caption">{{ data.model.caption }}</textarea> |
958 | </label> |
959 | <?php endif; ?> |
960 |
|
961 | <label class="setting alt-text"> |
962 | <span><?php _e( 'Alternative Text' ); ?></span> |