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