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.
| Line | Code |
|---|---|
| 702 | * @since 2.7.0 |
| 703 | * |
| 704 | * @param unknown_type $post |
| 705 | * @param unknown_type $check |
| 706 | * @return unknown |
| 707 | */ |
| 708 | function image_size_input_fields( $post, $check = '' ) { |
| 709 | |
| 710 | // get a list of the actual pixel dimensions of each possible intermediate version of this image |
| 711 | $size_names = apply_filters( 'image_size_names_choose', array('thumbnail' => __('Thumbnail'), 'medium' => __('Medium'), 'large' => __('Large'), 'full' => __('Full Size')) ); |
| 712 | |
| 713 | if ( empty($check) ) |
| 714 | $check = get_user_setting('imgsize', 'medium'); |
| 715 | |
| 716 | foreach ( $size_names as $size => $label ) { |
| 717 | $downsize = image_downsize($post->ID, $size); |
| 718 | $checked = ''; |
| 719 | |
| 720 | // is this size selectable? |