Skip to content

Visibility Criterion

The Visibility Search Criterion searches for content based on whether it is visible or not.

This Criterion takes into account both hiding content and hiding Locations.

When used with Content Search, the Criterion takes into account all assigned Locations. This means that hidden content will be returned if it has at least one visible Location. Use Location Search to avoid this.

Arguments

  • value - Visibility constant (VISIBLE, HIDDEN)

Example

1
$query->query = new Criterion\Visibility(Criterion\Visibility::HIDDEN);
Read the Docs