How to Increase the Max Input Vars Limit & WP memory Limit
Increase Max Input Vars
The max_input_vars directive can be set in .htaccess, php.ini , .user.ini or wp-config.php file.
Directive for .htaccess
php_value max_input_vars 4000
Directive for php.ini or .user.ini
<strong>max_input_vars =4000 </strong>
Directive for wp-config.php
@ini_set( 'max_input_vars' , 4000 );<span></span>
Increase WP Memory Limit
Directive for wp-config.php
define( 'WP_MEMORY_LIMIT', '512M' );
If this code already exists in your wp-config.php file, you need to increase the number. For example, you can increase it from 32M to 512M.
If you don’t see this line of code in the file, you’ll need to add it. Just add the following code above the line that says
/* That's all, stop editing! Happy publishing. */: