gdrts-template-like-this-default-list-thumbnail-size

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

Filter gdrts-template-like-this-default-list-thumbnail-size is used to filter the thumbnail size for the Default List templates for Like This method templates. This filter has one argument only:

  • $size: size of the thumbnail. It can be in the standard WordPress image dimensions: name of the registered size (thumbnail, medium, large, full…) or the array with width and height. Default is array(64, 64) – to display image 64×64 pixels.

Example

Here is the basic example to change the thumbnail size for the default list template:

add_filter('gdrts-template-like-this-default-list-thumbnail-size', 'custom__gdrts-template-like-this-default-list-thumbnail-size');
function custom__gdrts-template-like-this-default-list-thumbnail-size($size) {
  return 'medium';
}
0
0
743
Rate this reference

You are not allowed to rate this post.

Leave a Comment