Support » Developing with WordPress » Disable crop when uploading custom-header

  • Hi,

    I want to don’t allow admin to crop the uploaded images in custom-header
    How can I disable that?

    Thank you

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You could override the crop() method in wp-admin/js/image-edit.js so that it does nothing. That would disable all cropping, not just for the custom header image.

    You could remove the default control and replace it with your own that does a straight image upload without going through the media library.

    I don’t see a way to prevent cropping only for custom header images while still using the media library. That does not mean there is not a way. I just am not seeing any.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable crop when uploading custom-header’ is closed to new replies.