Created
January 18, 2017 17:13
-
-
Save robneu/c1c248d42affdaec6531a958445da13e to your computer and use it in GitHub Desktop.
Modify the default recipe image size in Cookbook.
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 | |
add_filter( 'cookbook_recipe_image_size', 'prefix_get_recipe_image_size' ); | |
/** | |
* Modify the default cookbook recipe image size. | |
* | |
* @since 1.0.0 | |
* @param string $size The current image size. | |
* @return string | |
*/ | |
function prefix_get_recipe_image_size( $size ) { | |
return 'thumbnail'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment