SearchWP

This Documentation is for SearchWP Version 3

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

[wpforms id="3080"]