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
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 | |
// Decrease the file size content threshold in SearchWP | |
apply_filters( 'searchwp_file_content_limit', function( $limit ) { | |
return 500000; | |
}); |
Parameters
Parameter | Type | Description |
---|---|---|
$limit |
Integer |
Character length to prevent content inclusion on edit screen |