Using Default WordPress Custom Header Image Crop Feature in a Post Type / MetaBox April 24, 2022 by Tarik Billa Take a look into /wp-admin/custom-header.php. You may extend the class Custom_Image_Header and adjust it to your needs.