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 |
---|---|
662 | <label class="setting"> |
663 | <span><?php _e('Size'); ?></span> |
664 | <select class="size" name="size" |
665 | data-setting="size" |
666 | <# if ( data.userSettings ) { #> |
667 | data-user-setting="imgsize" |
668 | <# } #>> |
669 | <?php |
670 | /** This filter is documented in wp-admin/includes/media.php */ |
671 | $sizes = apply_filters( 'image_size_names_choose', array( |
672 | 'thumbnail' => __('Thumbnail'), |
673 | 'medium' => __('Medium'), |
674 | 'large' => __('Large'), |
675 | 'full' => __('Full Size'), |
676 | ) ); |
677 |
|
678 | foreach ( $sizes as $value => $name ) : ?> |
679 | <# |
680 | var size = data.sizes['<?php echo esc_js( $value ); ?>']; |
Line | Code |
886 | <label class="setting size"> |
887 | <span><?php _e('Size'); ?></span> |
888 | <select class="size" name="size" |
889 | data-setting="size" |
890 | <# if ( data.userSettings ) { #> |
891 | data-user-setting="imgsize" |
892 | <# } #>> |
893 | <?php |
894 | /** This filter is documented in wp-admin/includes/media.php */ |
895 | $sizes = apply_filters( 'image_size_names_choose', array( |
896 | 'thumbnail' => __('Thumbnail'), |
897 | 'medium' => __('Medium'), |
898 | 'large' => __('Large'), |
899 | 'full' => __('Full Size'), |
900 | ) ); |
901 |
|
902 | foreach ( $sizes as $value => $name ) : ?> |
903 | <# |
904 | var size = data.sizes['<?php echo esc_js( $value ); ?>']; |