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 3 times in this file.
Line | Code |
---|---|
680 | <label class="setting"> |
681 | <span><?php _e('Size'); ?></span> |
682 | <select class="size" name="size" |
683 | data-setting="size" |
684 | <# if ( data.userSettings ) { #> |
685 | data-user-setting="imgsize" |
686 | <# } #>> |
687 | <?php |
688 | /** This filter is documented in wp-admin/includes/media.php */ |
689 | $sizes = apply_filters( 'image_size_names_choose', array( |
690 | 'thumbnail' => __('Thumbnail'), |
691 | 'medium' => __('Medium'), |
692 | 'large' => __('Large'), |
693 | 'full' => __('Full Size'), |
694 | ) ); |
695 |
|
696 | foreach ( $sizes as $value => $name ) : ?> |
697 | <# |
698 | var size = data.sizes['<?php echo esc_js( $value ); ?>']; |
Line | Code |
755 | <span><?php _e( 'Size' ); ?></span> |
756 | <select class="size" name="size" |
757 | data-setting="size" |
758 | <# if ( data.userSettings ) { #> |
759 | data-user-setting="imgsize" |
760 | <# } #> |
761 | > |
762 | <?php |
763 | // This filter is documented in wp-admin/includes/media.php |
764 | $size_names = apply_filters( 'image_size_names_choose', array( |
765 | 'thumbnail' => __( 'Thumbnail' ), |
766 | 'medium' => __( 'Medium' ), |
767 | 'large' => __( 'Large' ), |
768 | 'full' => __( 'Full Size' ), |
769 | ) ); |
770 |
|
771 | foreach ( $size_names as $size => $label ) : ?> |
772 | <option value="<?php echo esc_attr( $size ); ?>"> |
773 | <?php echo esc_html( $label ); ?> |
Line | Code |
929 | <label class="setting size"> |
930 | <span><?php _e('Size'); ?></span> |
931 | <select class="size" name="size" |
932 | data-setting="size" |
933 | <# if ( data.userSettings ) { #> |
934 | data-user-setting="imgsize" |
935 | <# } #>> |
936 | <?php |
937 | /** This filter is documented in wp-admin/includes/media.php */ |
938 | $sizes = apply_filters( 'image_size_names_choose', array( |
939 | 'thumbnail' => __('Thumbnail'), |
940 | 'medium' => __('Medium'), |
941 | 'large' => __('Large'), |
942 | 'full' => __('Full Size'), |
943 | ) ); |
944 |
|
945 | foreach ( $sizes as $value => $name ) : ?> |
946 | <# |
947 | var size = data.sizes['<?php echo esc_js( $value ); ?>']; |