ControlledChaos of Controlled Chaos Design
8/9/2016 - 6:42 PM

Activate Thumbnail Cropping

Activate Thumbnail Cropping

<?php

if ( false === get_option( 'thumbnail_crop' ) ) {
  add_option( 'thumbnail_crop', '1' );
} else {
  update_option( 'thumbnail_crop', '1' );
}

if ( false === get_option( 'medium_crop') ) {
  add_option( 'medium_crop', '1' );
} else {
  update_option( 'medium_crop', '1' );
}

if ( false === get_option( 'large_crop' ) ) {
     add_option( 'large_crop', '1' );
} else {
  update_option( 'large_crop', '1' );
}

?>

Activate Thumbnail Cropping

WordPress Snippet