• Resolved catuyen

    (@catuyen)


    Hi
    As I remember. When I first time upload an image and choose the thumbnail is “FULL SIZE”. Next time when I upload an image the default is FULL SIZE again.

    But today, every image I upload as the default is Thumbnail even though I have set FULL SIZE before.

    Image: https://ibb.co/rwb6KmG

    Do you why and How can I fix these small issues?

    Thanks

    • This topic was modified 2 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 1 replies (of 1 total)
  • Thread Starter catuyen

    (@catuyen)

    I found it

    function wps_attachment_display_settings() {
        update_option( 'image_default_align', 'left' );
        update_option( 'image_default_link_type', 'none' );
        update_option( 'image_default_size', 'large' );
    }
    add_action( 'after_setup_theme', 'wps_attachment_display_settings' );

    Credit

    • This reply was modified 2 years, 1 month ago by catuyen.
Viewing 1 replies (of 1 total)
  • The topic ‘How to set default thumbnail after upload image is “FULL SIZE”?’ is closed to new replies.