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: 2.8

searchwp_file_content_limit

View Parameters »

There is a threshold that dictates whether the file content of a document will be displayed on the edit screen for your Media. This is in place to prevent sluggish page displays when viewing edit screens for Media with very large amounts of content.

If you would like to modify this threshold, a hook is provided inline when viewing the edit screen for an offending Media entry, but you can also add something like this to your theme’s functions.php

<?php
// Decrease the file size content threshold in SearchWP
apply_filters( 'searchwp_file_content_limit', function( $limit ) {
return 500000;
});
view raw functions.php hosted with ❤ by GitHub

Parameters

Parameter Type Description
$limit Integer

Character length to prevent content inclusion on edit screen

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