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 |
|---|---|
| 899 | <span class="setting"> |
| 900 | <label for="attachment-display-settings-size" class="name"><?php _e( 'Size' ); ?></label> |
| 901 | <select id="attachment-display-settings-size" class="size" name="size" |
| 902 | data-setting="size" |
| 903 | <# if ( data.userSettings ) { #> |
| 904 | data-user-setting="imgsize" |
| 905 | <# } #>> |
| 906 | <?php |
| 907 | /** This filter is documented in wp-admin/includes/media.php */ |
| 908 | $sizes = apply_filters( |
| 909 | 'image_size_names_choose', |
| 910 | array( |
| 911 | 'thumbnail' => __( 'Thumbnail' ), |
| 912 | 'medium' => __( 'Medium' ), |
| 913 | 'large' => __( 'Large' ), |
| 914 | 'full' => __( 'Full Size' ), |
| 915 | ) |
| 916 | ); |
| 917 | |
| Line | Code |
| 979 | <label for="gallery-settings-size" class="name"><?php _e( 'Size' ); ?></label> |
| 980 | <select id="gallery-settings-size" class="size" name="size" |
| 981 | data-setting="size" |
| 982 | <# if ( data.userSettings ) { #> |
| 983 | data-user-setting="imgsize" |
| 984 | <# } #> |
| 985 | > |
| 986 | <?php |
| 987 | /** This filter is documented in wp-admin/includes/media.php */ |
| 988 | $size_names = apply_filters( |
| 989 | 'image_size_names_choose', |
| 990 | array( |
| 991 | 'thumbnail' => __( 'Thumbnail' ), |
| 992 | 'medium' => __( 'Medium' ), |
| 993 | 'large' => __( 'Large' ), |
| 994 | 'full' => __( 'Full Size' ), |
| 995 | ) |
| 996 | ); |
| 997 | |
| Line | Code |
| 1170 | <span class="setting size"> |
| 1171 | <label for="image-details-size" class="name"><?php _e( 'Size' ); ?></label> |
| 1172 | <select id="image-details-size" class="size" name="size" |
| 1173 | data-setting="size" |
| 1174 | <# if ( data.userSettings ) { #> |
| 1175 | data-user-setting="imgsize" |
| 1176 | <# } #>> |
| 1177 | <?php |
| 1178 | /** This filter is documented in wp-admin/includes/media.php */ |
| 1179 | $sizes = apply_filters( |
| 1180 | 'image_size_names_choose', |
| 1181 | array( |
| 1182 | 'thumbnail' => __( 'Thumbnail' ), |
| 1183 | 'medium' => __( 'Medium' ), |
| 1184 | 'large' => __( 'Large' ), |
| 1185 | 'full' => __( 'Full Size' ), |
| 1186 | ) |
| 1187 | ); |
| 1188 | |