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


View the installation guide, browse the Knowledge Base, find out about SearchWP's many hooks, get support

Available since: 2.7


This hook allows you to prevent vendor libraries from being loaded in cases where project requirements dictate it.

NOTE: enabling this hook will prevent the following from working as expected:

  • PDF content extraction
  • PDF metadata extraction

Example: to prevent vendor libraries from being loaded, add the following to your theme’s functions.php:

add_filter( 'searchwp_skip_vendor_libs', '__return_true' );
view raw functions.php hosted with ❤ by GitHub
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