Last active
April 7, 2018 15:10
-
-
Save mrdavefoy/68ae85c2cbcbd362f33ee474930c85ee to your computer and use it in GitHub Desktop.
Add new image size to Size dropdown
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 my_custom_sizes( $sizes ) { | |
return array_merge( $sizes, array( | |
'content' => __( 'Content' ), | |
) ); | |
} | |
add_filter( 'image_size_names_choose', 'my_custom_sizes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment