public function featuredImageURL($width = null, $height = null, $defaultFeaturedImageURL = '')
    {
        if($this->hasFeaturedImage()) {
            if(!$width && !$height) {
                return url($this->featuredImage->url);
            }else{
                return $this->featuredImage->thumb($width, $height, $this->featuredImage);
            }
        }else if($defaultFeaturedImageURL) {
            return $defaultFeaturedImageURL;
        }

        return null;
    }
public function featuredImageURL($width = null, $height = null, $defaultFeaturedImageURL = '')
    {
        if($this->hasFeaturedImage()) {
            if(!$width && !$height) {
                return url($this->featuredImage->url);
            }else{
                return $this->featuredImage->thumb($width, $height, $this->featuredImage);
            }
        }else if($defaultFeaturedImageURL) {
            return $defaultFeaturedImageURL;
        }

        return null;
    }
public function featuredImageURL ( $ width = null , $ height = null , $ defaultFeaturedImageURL = '' ) { if ( $ this -> hasFeaturedImage ( ) ) { if ( ! $ width && ! $ height ) { return url ( $ this -> featuredImage -> url ) ; } else { return $ this -> featuredImage -> thumb ( $ width , $ height , $ this -> featuredImage ) ; } } else if ( $ defaultFeaturedImageURL ) { return $ defaultFeaturedImageURL ; } return null ; }
Get URL of a tag's featured image.

@param int    $width
@param int    $height
@param string $defaultFeaturedImageURL The url of an image that should be returned if no featured image is found

@return string|null Returns url of featured image if found, null instead
Get URL of a tag s featured image .