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