SearchWP

This Documentation is for SearchWP Version 3

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:

<?php
// NOTE: applies only to legacy settings screen as of SearchWP 2.9
add_filter( 'searchwp_lightweight_settings', '__return_true' );
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$load Boolean

Whether to load the lightweight settings screen (default: false)