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

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?