Available since: 2.4.5
searchwp_lightweight_settings
View Parameters »Note: Applies only to legacy settings screen as of SearchWP 2.9
SearchWP’s settings screen gathers a lot of information about your site when loading. If your settings screen is taking a long time to load (or even timing out) you can use this hook to skip the loading of this information as a method of avoiding that slowness.
To use the lightweight settings screen, 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 | |
// NOTE: applies only to legacy settings screen as of SearchWP 2.9 | |
add_filter( 'searchwp_lightweight_settings', '__return_true' ); |
Parameters
Parameter | Type | Description |
---|---|---|
$load |
Boolean |
Whether to load the lightweight settings screen (default: |