-
-
Save blogjunkie/c220b4f50b06a5d52bb4f2f4cb477908 to your computer and use it in GitHub Desktop.
Add image size to media select
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
<?php | |
// Register an image sizes for use in Add Media modal | |
add_filter( 'image_size_names_choose', 'child_custom_sizes' ); | |
function child_custom_sizes( $sizes ) { | |
return array_merge( $sizes, array( | |
'row-background' => __( 'Row Background' ), | |
) ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment