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 |
|---|---|
| 728 | <label class="setting"> |
| 729 | <span><?php _e( 'Size' ); ?></span> |
| 730 | <select class="size" name="size" |
| 731 | data-setting="size" |
| 732 | <# if ( data.userSettings ) { #> |
| 733 | data-user-setting="imgsize" |
| 734 | <# } #>> |
| 735 | <?php |
| 736 | /** This filter is documented in wp-admin/includes/media.php */ |
| 737 | $sizes = apply_filters( |
| 738 | 'image_size_names_choose', |
| 739 | array( |
| 740 | 'thumbnail' => __( 'Thumbnail' ), |
| 741 | 'medium' => __( 'Medium' ), |
| 742 | 'large' => __( 'Large' ), |
| 743 | 'full' => __( 'Full Size' ), |
| 744 | ) |
| 745 | ); |
| 746 | |
| Line | Code |
| 807 | <span><?php _e( 'Size' ); ?></span> |
| 808 | <select class="size" name="size" |
| 809 | data-setting="size" |
| 810 | <# if ( data.userSettings ) { #> |
| 811 | data-user-setting="imgsize" |
| 812 | <# } #> |
| 813 | > |
| 814 | <?php |
| 815 | /** This filter is documented in wp-admin/includes/media.php */ |
| 816 | $size_names = apply_filters( |
| 817 | 'image_size_names_choose', |
| 818 | array( |
| 819 | 'thumbnail' => __( 'Thumbnail' ), |
| 820 | 'medium' => __( 'Medium' ), |
| 821 | 'large' => __( 'Large' ), |
| 822 | 'full' => __( 'Full Size' ), |
| 823 | ) |
| 824 | ); |
| 825 | |
| Line | Code |
| 987 | <label class="setting size"> |
| 988 | <span><?php _e( 'Size' ); ?></span> |
| 989 | <select class="size" name="size" |
| 990 | data-setting="size" |
| 991 | <# if ( data.userSettings ) { #> |
| 992 | data-user-setting="imgsize" |
| 993 | <# } #>> |
| 994 | <?php |
| 995 | /** This filter is documented in wp-admin/includes/media.php */ |
| 996 | $sizes = apply_filters( |
| 997 | 'image_size_names_choose', |
| 998 | array( |
| 999 | 'thumbnail' => __( 'Thumbnail' ), |
| 1000 | 'medium' => __( 'Medium' ), |
| 1001 | 'large' => __( 'Large' ), |
| 1002 | 'full' => __( 'Full Size' ), |
| 1003 | ) |
| 1004 | ); |
| 1005 | |