In this article

filter

jetpack_postimages_exclude_image

Filters whether to exclude a specific image from post image discovery. This filter runs inside Jetpack_PostImages, which powers image selection for Related Posts, Open Graph tags, and other features. Returning a truthy value causes the image to be skipped.

Parameters

$exclude
bool

Whether to exclude the image. Default false.

$image
array

{ Image data.

Changelog

How to use this hook

See “How to use actions and filters to customize Jetpack”.