Skip to content

Default crop options to the WP Admin

Compare
Choose a tag to compare
@junaidbhura junaidbhura released this 26 Oct 11:16
· 99 commits to master since this release

Added default crop options to the WP Admin based on this issue: #10

Based on requests on Github and on the WordPress support forums, it became apparent that it would be easier to set default crops for hard and soft crops directly from the WP admin, rather than by using filters.

The filters still continue to work as before:

Setting the filter cloudinary_default_crop sets the default crop for all images.
Setting the filter cloudinary_default_hard_crop sets the default crop for hard cropped images.
Setting the filter cloudinary_default_soft_crop sets the default crop for soft cropped images.