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 |
|---|---|
| 742 | <label class="setting"> |
| 743 | <span><?php _e( 'Size' ); ?></span> |
| 744 | <select class="size" name="size" |
| 745 | data-setting="size" |
| 746 | <# if ( data.userSettings ) { #> |
| 747 | data-user-setting="imgsize" |
| 748 | <# } #>> |
| 749 | <?php |
| 750 | /** This filter is documented in wp-admin/includes/media.php */ |
| 751 | $sizes = apply_filters( |
| 752 | 'image_size_names_choose', |
| 753 | array( |
| 754 | 'thumbnail' => __( 'Thumbnail' ), |
| 755 | 'medium' => __( 'Medium' ), |
| 756 | 'large' => __( 'Large' ), |
| 757 | 'full' => __( 'Full Size' ), |
| 758 | ) |
| 759 | ); |
| 760 | |
| Line | Code |
| 821 | <span><?php _e( 'Size' ); ?></span> |
| 822 | <select class="size" name="size" |
| 823 | data-setting="size" |
| 824 | <# if ( data.userSettings ) { #> |
| 825 | data-user-setting="imgsize" |
| 826 | <# } #> |
| 827 | > |
| 828 | <?php |
| 829 | /** This filter is documented in wp-admin/includes/media.php */ |
| 830 | $size_names = apply_filters( |
| 831 | 'image_size_names_choose', |
| 832 | array( |
| 833 | 'thumbnail' => __( 'Thumbnail' ), |
| 834 | 'medium' => __( 'Medium' ), |
| 835 | 'large' => __( 'Large' ), |
| 836 | 'full' => __( 'Full Size' ), |
| 837 | ) |
| 838 | ); |
| 839 | |
| Line | Code |
| 1003 | <label class="setting size"> |
| 1004 | <span><?php _e( 'Size' ); ?></span> |
| 1005 | <select class="size" name="size" |
| 1006 | data-setting="size" |
| 1007 | <# if ( data.userSettings ) { #> |
| 1008 | data-user-setting="imgsize" |
| 1009 | <# } #>> |
| 1010 | <?php |
| 1011 | /** This filter is documented in wp-admin/includes/media.php */ |
| 1012 | $sizes = apply_filters( |
| 1013 | 'image_size_names_choose', |
| 1014 | array( |
| 1015 | 'thumbnail' => __( 'Thumbnail' ), |
| 1016 | 'medium' => __( 'Medium' ), |
| 1017 | 'large' => __( 'Large' ), |
| 1018 | 'full' => __( 'Full Size' ), |
| 1019 | ) |
| 1020 | ); |
| 1021 | |