Summery Summery
Retrieve HTML for the Link URL buttons with the default link type as specified.
Syntax Syntax
Parameters Parameters
- $post
-
(Required)
- $url_type
-
(Optional)
Default value: ''
Return Return
(string)
Source Source
File: wp-admin/includes/media.php
array(
'thumbnail' => __( 'Thumbnail' ),
'medium' => __( 'Medium' ),
'large' => __( 'Large' ),
'full' => __( 'Full Size' ),
)
);
if ( empty( $check ) ) {
$check = get_user_setting( 'imgsize', 'medium' );
}
$out = array();
foreach ( $size_names as $size => $label ) {
$downsize = image_downsize( $post->ID, $size );
$checked = '';
// Is this size selectable?
$enabled = ( $downsize[3] || 'full' === $size );
$css_id = "image-size-{$size}-{$post->ID}";
// If this size is the default but that's not available, don't select it.
Advertisement
Changelog Changelog
| Version | Description |
|---|---|
| 2.7.0 | Introduced. |