Available since: 2.7
searchwp_skip_vendor_libs
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'searchwp_skip_vendor_libs', '__return_true' ); |