How to increase the Max Input Vars Limit

Updated: January 22, 2020

The max_input_vars directive can be configured in .htaccess, php.ini or wp-config.php file. We recommend to increase default value to 3000. Here is how you can do it:

In .htaccess

php_value max_input_vars 3000

In php.ini

max_input_vars = 3000

In wp-config.php

@ini_set( 'max_input_vars' , 3000 );

Author: Martin

CEO & Founder of AitThemes. Martin has 20 years experience in web industry. Has masters degree in IT. Experienced Web developer, Linux and Database Admin.