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 |
---|---|
797 | <span class="setting"> |
798 | <label for="attachment-display-settings-size" class="name"><?php _e( 'Size' ); ?></label> |
799 | <select id="attachment-display-settings-size" class="size" name="size" |
800 | data-setting="size" |
801 | <# if ( data.userSettings ) { #> |
802 | data-user-setting="imgsize" |
803 | <# } #>> |
804 | <?php |
805 | /** This filter is documented in wp-admin/includes/media.php */ |
806 | $sizes = apply_filters( |
807 | 'image_size_names_choose', |
808 | array( |
809 | 'thumbnail' => __( 'Thumbnail' ), |
810 | 'medium' => __( 'Medium' ), |
811 | 'large' => __( 'Large' ), |
812 | 'full' => __( 'Full Size' ), |
813 | ) |
814 | ); |
815 |
|
Line | Code |
877 | <label for="gallery-settings-size" class="name"><?php _e( 'Size' ); ?></label> |
878 | <select id="gallery-settings-size" class="size" name="size" |
879 | data-setting="size" |
880 | <# if ( data.userSettings ) { #> |
881 | data-user-setting="imgsize" |
882 | <# } #> |
883 | > |
884 | <?php |
885 | /** This filter is documented in wp-admin/includes/media.php */ |
886 | $size_names = apply_filters( |
887 | 'image_size_names_choose', |
888 | array( |
889 | 'thumbnail' => __( 'Thumbnail' ), |
890 | 'medium' => __( 'Medium' ), |
891 | 'large' => __( 'Large' ), |
892 | 'full' => __( 'Full Size' ), |
893 | ) |
894 | ); |
895 |
|
Line | Code |
1068 | <span class="setting size"> |
1069 | <label for="image-details-size" class="name"><?php _e( 'Size' ); ?></label> |
1070 | <select id="image-details-size" class="size" name="size" |
1071 | data-setting="size" |
1072 | <# if ( data.userSettings ) { #> |
1073 | data-user-setting="imgsize" |
1074 | <# } #>> |
1075 | <?php |
1076 | /** This filter is documented in wp-admin/includes/media.php */ |
1077 | $sizes = apply_filters( |
1078 | 'image_size_names_choose', |
1079 | array( |
1080 | 'thumbnail' => __( 'Thumbnail' ), |
1081 | 'medium' => __( 'Medium' ), |
1082 | 'large' => __( 'Large' ), |
1083 | 'full' => __( 'Full Size' ), |
1084 | ) |
1085 | ); |
1086 |
|