Created
January 29, 2015 20:45
-
-
Save ericakfranz/98770c7040fd569fcdd0 to your computer and use it in GitHub Desktop.
Filter Soliloquy Crop Defaults
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function soliloquy_crop_change_args( $args ) { | |
$args = array( | |
'position' => 'b', // crop position, b = bottom, c = center, t = top, default is center | |
'width' => '1200', // cropped image width | |
'height' => '300', // cropped image height | |
'quality' => 100, // cropped image quality | |
'retina' => true // make allowance for retina (produces cropped images at twice the dimension size set), default is false | |
); | |
return $args; | |
} | |
add_filter( 'soliloquy_crop_image_args', 'soliloquy_crop_change_args', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment