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