Skip to content

Instantly share code, notes, and snippets.

@robneu
Created January 18, 2017 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robneu/c1c248d42affdaec6531a958445da13e to your computer and use it in GitHub Desktop.
Save robneu/c1c248d42affdaec6531a958445da13e to your computer and use it in GitHub Desktop.
Modify the default recipe image size in Cookbook.
<?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