init.php
public function get_thumb( $object ) {
		$thumbnail = '';

		if ( $this->field->options( 'show_thumbnails' ) ) {
			// Set thumbnail if the options is true
			$thumbnail = $this->field->options( 'query_users' )
				? get_avatar( $object->ID, 25 )
				: get_the_post_thumbnail( $object->ID, array( 50, 50 ) );
		}

		return $thumbnail;
	}
public function get_thumb( $object ) {
		$thumbnail = '';

		if ( $this->field->options( 'show_thumbnails' ) ) {
			// Set thumbnail if the options is true
			$thumbnail = $this->field->options( 'query_users' )
				? get_avatar( $object->ID, 25 )
				: get_the_post_thumbnail( $object->ID, array( 50, 50 ) );
		}

		return $thumbnail;
	}
public function get_thumb ( $ object ) { $ thumbnail = '' ; if ( $ this -> field -> options ( 'show_thumbnails' ) ) { // Set thumbnail if the options is true $ thumbnail = $ this -> field -> options ( 'query_users' ) ? get_avatar ( $ object -> ID , 25 ) : get_the_post_thumbnail ( $ object -> ID , array ( 50 , 50 ) ) ; } return $ thumbnail ; }
Get thumbnail for the object.

@since  1.2.4

@param  mixed  $object Post or User

@return string         The thumbnail, if endabled/found.
Get thumbnail for the object .