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 |
|---|---|
| 842 | <span class="setting"> |
| 843 | <label for="attachment-display-settings-size" class="name"><?php _e( 'Size' ); ?></label> |
| 844 | <select id="attachment-display-settings-size" class="size" name="size" |
| 845 | data-setting="size" |
| 846 | <# if ( data.userSettings ) { #> |
| 847 | data-user-setting="imgsize" |
| 848 | <# } #>> |
| 849 | <?php |
| 850 | /** This filter is documented in wp-admin/includes/media.php */ |
| 851 | $sizes = apply_filters( |
| 852 | 'image_size_names_choose', |
| 853 | array( |
| 854 | 'thumbnail' => __( 'Thumbnail' ), |
| 855 | 'medium' => __( 'Medium' ), |
| 856 | 'large' => __( 'Large' ), |
| 857 | 'full' => __( 'Full Size' ), |
| 858 | ) |
| 859 | ); |
| 860 | |
| Line | Code |
| 922 | <label for="gallery-settings-size" class="name"><?php _e( 'Size' ); ?></label> |
| 923 | <select id="gallery-settings-size" class="size" name="size" |
| 924 | data-setting="size" |
| 925 | <# if ( data.userSettings ) { #> |
| 926 | data-user-setting="imgsize" |
| 927 | <# } #> |
| 928 | > |
| 929 | <?php |
| 930 | /** This filter is documented in wp-admin/includes/media.php */ |
| 931 | $size_names = apply_filters( |
| 932 | 'image_size_names_choose', |
| 933 | array( |
| 934 | 'thumbnail' => __( 'Thumbnail' ), |
| 935 | 'medium' => __( 'Medium' ), |
| 936 | 'large' => __( 'Large' ), |
| 937 | 'full' => __( 'Full Size' ), |
| 938 | ) |
| 939 | ); |
| 940 | |
| Line | Code |
| 1113 | <span class="setting size"> |
| 1114 | <label for="image-details-size" class="name"><?php _e( 'Size' ); ?></label> |
| 1115 | <select id="image-details-size" class="size" name="size" |
| 1116 | data-setting="size" |
| 1117 | <# if ( data.userSettings ) { #> |
| 1118 | data-user-setting="imgsize" |
| 1119 | <# } #>> |
| 1120 | <?php |
| 1121 | /** This filter is documented in wp-admin/includes/media.php */ |
| 1122 | $sizes = apply_filters( |
| 1123 | 'image_size_names_choose', |
| 1124 | array( |
| 1125 | 'thumbnail' => __( 'Thumbnail' ), |
| 1126 | 'medium' => __( 'Medium' ), |
| 1127 | 'large' => __( 'Large' ), |
| 1128 | 'full' => __( 'Full Size' ), |
| 1129 | ) |
| 1130 | ); |
| 1131 | |