Crop medium thumbnail in WordPress

/ Published in: PHP
Save to your folder(s)

Add this bit of code to functions.php

Copy this code and paste it in your HTML
  1. if (get_option('medium_crop') === false) {
  2. add_option('medium_crop, '1');
  3. } else {
  4. update_option('medium_crop', '1');
  5. }


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.