Docs: How to Increase the Max Input Vars Limit?

How to Increase the Max Input Vars Limit?

PHP Max Input Vars means the maximum number of variables your server can use for a single function to avoid overloads.

The max_input_vars can be set by modifying multiple files. They are .htaccess, php.ini, .user.ini, or wp-config.php. files. You are gonna need FTP access to modify those files. You can find the credentials for your FTP access from your hosting provider.

To set max_input_vars please follow the steps given below,

1.Go to your WordPress root installation folder and locate any of these files .htaccess, php.ini, .user.ini or wp-config.php
2.Select any of the files above and Edit and paste the code given below,
3.Save the file.

It's better to ask the Hosting to increase this value.

Directive codes

for .htaccess

				
					php_value max_input_vars 4000
				
			

for php.ini or .user.ini

				
					max_input_vars = 4000
				
			

for wp-config.php

				
					@ini_set( 'max_input_vars' , 4000 );
				
			
The recommended limit is 4000 minimum.
What are your feelings
Updated on October 1, 2024