Increase PHP max input vars in WordPress

Looking to increase PHP max input vars in WordPress? There are different methods you can use to configure this on your server.

Use php.ini to increase max input vars

You can increase your WordPress website’s PHP max input vars through your server’s php.ini file, using the steps below:

  1. FTP into your server’s root WordPress installation folder.
  2. Create a php.ini file here.
  3. Copy and paste the code below into this file.
  4. Save and re-upload accordingly.
max_input_vars = 5000;

Use htaccess file to increase max input vars

If your server doesn’t allow the creation of a php.ini file, you can inrease this in your htaccess file instead by following the steps below:

  1. FTP into your server’s root WordPress installation folder.
  2. Find and open the .htaccess file.
  3. Copy and paste the code below into the end of this file.
  4. Save and re-upload accordingly.
php_value max_input_vars 5000