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