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 |
|---|---|
| 664 | <label class="setting"> |
| 665 | <span><?php _e('Size'); ?></span> |
| 666 | <select class="size" name="size" |
| 667 | data-setting="size" |
| 668 | <# if ( data.userSettings ) { #> |
| 669 | data-user-setting="imgsize" |
| 670 | <# } #>> |
| 671 | <?php |
| 672 | /** This filter is documented in wp-admin/includes/media.php */ |
| 673 | $sizes = apply_filters( 'image_size_names_choose', array( |
| 674 | 'thumbnail' => __('Thumbnail'), |
| 675 | 'medium' => __('Medium'), |
| 676 | 'large' => __('Large'), |
| 677 | 'full' => __('Full Size'), |
| 678 | ) ); |
| 679 | |
| 680 | foreach ( $sizes as $value => $name ) : ?> |
| 681 | <# |
| 682 | var size = data.sizes['<?php echo esc_js( $value ); ?>']; |
| Line | Code |
| 739 | <span><?php _e( 'Size' ); ?></span> |
| 740 | <select class="size" name="size" |
| 741 | data-setting="size" |
| 742 | <# if ( data.userSettings ) { #> |
| 743 | data-user-setting="imgsize" |
| 744 | <# } #> |
| 745 | > |
| 746 | <?php |
| 747 | // This filter is documented in wp-admin/includes/media.php |
| 748 | $size_names = apply_filters( 'image_size_names_choose', array( |
| 749 | 'thumbnail' => __( 'Thumbnail' ), |
| 750 | 'medium' => __( 'Medium' ), |
| 751 | 'large' => __( 'Large' ), |
| 752 | 'full' => __( 'Full Size' ), |
| 753 | ) ); |
| 754 | |
| 755 | foreach ( $size_names as $size => $label ) : ?> |
| 756 | <option value="<?php echo esc_attr( $size ); ?>"> |
| 757 | <?php echo esc_html( $label ); ?> |
| Line | Code |
| 913 | <label class="setting size"> |
| 914 | <span><?php _e('Size'); ?></span> |
| 915 | <select class="size" name="size" |
| 916 | data-setting="size" |
| 917 | <# if ( data.userSettings ) { #> |
| 918 | data-user-setting="imgsize" |
| 919 | <# } #>> |
| 920 | <?php |
| 921 | /** This filter is documented in wp-admin/includes/media.php */ |
| 922 | $sizes = apply_filters( 'image_size_names_choose', array( |
| 923 | 'thumbnail' => __('Thumbnail'), |
| 924 | 'medium' => __('Medium'), |
| 925 | 'large' => __('Large'), |
| 926 | 'full' => __('Full Size'), |
| 927 | ) ); |
| 928 | |
| 929 | foreach ( $sizes as $value => $name ) : ?> |
| 930 | <# |
| 931 | var size = data.sizes['<?php echo esc_js( $value ); ?>']; |