How do I handle the "WP_Customize_Cropped_Image_Control" callback?
I want to make a logo manager in the Customizer, but how do I set different image sizes with the WP_Customize_Cropped_Image_Control
class?
Example from Make WordPress Core:
$wp_customize-add_control( new WP_Customize_Cropped_Image_Control( $wp_customize, 'cropped_image', array(
'section' = 'background_image',
'label' = __( 'Croppable Image' ),
'flex_width' = true, // Allow any width, making the specified value recommended. False by default.
'flex_height' = false, // Require the resulting image to be exactly as tall as the height attribute (default).
'width' = 1920,
'height' = 1080,
) ) );
Topic theme-customizer logo Wordpress
Category Web