SearchWP

This Documentation is for SearchWP Version 3

Available since: 3.0

searchwp_like_wildcard_after

View Parameters »

By default when partial matching is enabled, SearchWP will apply a LIKE wildcard after the search term. If you would like to prevent that you can use this hook:

<?php
// Prevent SearchWP from using a wildcard after search terms when finding partial matches.
add_filter( 'searchwp_like_wildcard_after', '__return_false' );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$wildcard_after Boolean

Whether to use a wildcard suffix

[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]
[wpforms id="3080"]