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; | |
} ); |