Settings update_option('thumbnail_size_w', 640); update_option('thumbnail_size_h', 640); update_option('thumbnail_crop', 1); update_option('medium_size_w', 1280); update_option('medium_size_h', 1280); update_option('large_size_w', 1920); update_option('large_size_h', 1920); // Sets the default link of images to None update_option('image_default_link_type','none'); // Switch default core markup for search form, comment form, and comments to output valid HTML5. add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Enable support for Post Formats. add_theme_support( 'post-formats', array( 'aside', 'gallery', 'link', 'image', 'quote', 'status', 'video', 'audio', 'chat', ) ); // Add theme support for selective refresh for widgets. add_theme_support( 'customize-selective-refresh-widgets' ); } add_action( 'after_setup_theme', 'applicator_settings' ); // Add the size as one of the options in Admin if ( ! function_exists( 'applicator_custom_image_size_option' ) ) { function applicator_custom_image_size_option( $sizes ) { $custom_sizes = array( 'applicator-image-size--image--thumbnail-hd' => 'Thumbnail (16:9)' ); return array_merge( $sizes, $custom_sizes ); } add_filter( 'image_size_names_choose', 'applicator_custom_image_size_option' ); }