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

Documentation

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

Available since: 1.0

searchwp_indexer_loopback_args

View Parameters »

SearchWP’s indexer runs in the background by making a series of HTTP requests to itself via wp_remote_post(). If you would like to filter the arguments sent to that function call you can add something like the following to your theme’s functions.php:

<?php
function my_searchwp_indexer_loopback_args( $args ) {
// $args are in the format of http://codex.wordpress.org/Function_Reference/wp_remote_post
// change the timeout
$args['timeout'] = 0.01;
return $args;
}
add_filter( 'searchwp_indexer_loopback_args', 'my_searchwp_indexer_loopback_args' );
view raw gistfile1.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$args Array

Arguments passed to wp_remote_post()

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