Filter: RCB/Blocker/ImagePreview/Fetcher

apply_filters( 'RCB/Blocker/ImagePreview/Fetcher', $fetcher ) → {ImagePreviewFetcher|null}

Let a site take over the requests of the image preview: the HTML pages of the embeds and the thumbnail downloads. The fetcher implements DevOwl\HeadlessContentBlocker\plugins\imagePreview\ImagePreviewFetcher, and its allowsOembed() answers false to switch off the oEmbed step, which uses a client of its own. Return null (default) to keep the requests of Real Cookie Banner.

Parameters:
Name Type Description
$fetcher ImagePreviewFetcher | null

Default null

Since:
  • 5.5.0
Returns:
Type
ImagePreviewFetcher | null