public function placeholder_image_fallback($html, $post_id, $post_thumbnail_id, $size, $attr)
    {
        if ($html === '' && Config::get('images.placeholder_dir') !== false) {
            $html = $this->image_service->get_placeholder_image($post_id, $post_thumbnail_id, $size, $attr);
        }

        return $html;
    }
public function placeholder_image_fallback($html, $post_id, $post_thumbnail_id, $size, $attr)
    {
        if ($html === '' && Config::get('images.placeholder_dir') !== false) {
            $html = $this->image_service->get_placeholder_image($post_id, $post_thumbnail_id, $size, $attr);
        }

        return $html;
    }
public function placeholder_image_fallback ( $ html , $ post_id , $ post_thumbnail_id , $ size , $ attr ) { if ( $ html === '' && Config :: get ( 'images.placeholder_dir' ) !== false ) { $ html = $ this -> image_service -> get_placeholder_image ( $ post_id , $ post_thumbnail_id , $ size , $ attr ) ; } return $ html ; }
If no post_thumbnail was found, find the corresponding placeholder image and return the image HTML.

@since 1.0.0

@param  string       $html              The post thumbnail HTML.
@param  int          $post_id           The post ID.
@param  string       $post_thumbnail_id The post thumbnail ID.
@param  string|array $size              The post thumbnail size. Image size or array of width and height
values (in that order). Default 'post-thumbnail'.
@param  string       $attr              Query string of attributes.
@return string The image HTML
If no post_thumbnail was found find the corresponding placeholder image and return the image HTML .