Note: You are viewing the documentation for Version 4View Version 3 Docs

searchwp\stopwords\suggestions\limit

Since: 4.0.0

Table of Contents

Control the number of Stopwords suggestions shown by SearchWP.

Parameters

Type Parameter Default Since
Integer $limit 20 4.0.0

Examples

All hooks should be added to your custom SearchWP Customizations Plugin.

Change the number of suggested Stopwords

Modify the number of Stopwords suggestions that are shown

<?php
// Modify the number of Stopwords suggestions that are shown.
add_filter( 'searchwp\stopwords\suggestions\limit', function( $limit ) {
return 25;
} );

How to use this code

Fix keyword search on your site. No coding required!

Now you can utilize all of the content that's gone unrecognized by native WordPress keyword search instantly with SearchWP

Get SearchWP