Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: image_size_names_choose

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

This hook occurs 3 times in this file.

Line Code
885                <span class="setting">
886                     <label for="attachment-display-settings-size" class="name"><?php _e( 'Size' ); ?></label>
887                     <select id="attachment-display-settings-size" class="size" name="size"
888                          data-setting="size"
889                          <# if ( data.userSettings ) { #>
890                               data-user-setting="imgsize"
891                          <# } #>>
892                          <?php
893                          /** This filter is documented in wp-admin/includes/media.php */
894                          $sizes = apply_filters(
895                               'image_size_names_choose',
896                               array(
897                                    'thumbnail' => __( 'Thumbnail' ),
898                                    'medium'    => __( 'Medium' ),
899                                    'large'     => __( 'Large' ),
900                                    'full'      => __( 'Full Size' ),
901                               )
902                          );
903
 
Line Code
965                <label for="gallery-settings-size" class="name"><?php _e( 'Size' ); ?></label>
966                <select id="gallery-settings-size" class="size" name="size"
967                     data-setting="size"
968                     <# if ( data.userSettings ) { #>
969                          data-user-setting="imgsize"
970                     <# } #>
971                     >
972                     <?php
973                     /** This filter is documented in wp-admin/includes/media.php */
974                     $size_names = apply_filters(
975                          'image_size_names_choose',
976                          array(
977                               'thumbnail' => __( 'Thumbnail' ),
978                               'medium'    => __( 'Medium' ),
979                               'large'     => __( 'Large' ),
980                               'full'      => __( 'Full Size' ),
981                          )
982                     );
983
 
Line Code
1156                                    <span class="setting size">
1157                                         <label for="image-details-size" class="name"><?php _e( 'Size' ); ?></label>
1158                                         <select id="image-details-size" class="size" name="size"
1159                                              data-setting="size"
1160                                              <# if ( data.userSettings ) { #>
1161                                                   data-user-setting="imgsize"
1162                                              <# } #>>
1163                                              <?php
1164                                              /** This filter is documented in wp-admin/includes/media.php */
1165                                              $sizes = apply_filters(
1166                                                   'image_size_names_choose',
1167                                                   array(
1168                                                        'thumbnail' => __( 'Thumbnail' ),
1169                                                        'medium'    => __( 'Medium' ),
1170                                                        'large'     => __( 'Large' ),
1171                                                        'full'      => __( 'Full Size' ),
1172                                                   )
1173                                              );
1174