apply_filters( 'wp_query_search_exclusion_prefix', string $exclusion_prefix )

Filters the prefix that indicates that a search term should be excluded from results.


Description Description


Parameters Parameters

$exclusion_prefix

(string) The prefix. Default '-'. Returning an empty value disables exclusions.


Top ↑

Source Source

File: wp-includes/class-wp-query.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.