Comments on: 13 Essential wp-config.php tweaks every WordPress user should know https://www.cssigniter.com/13-essential-wp-config-php-tweaks-every-wordpress-user-should-know/ Premium WordPress themes, templates & plugins Thu, 12 Oct 2023 15:49:14 +0000 hourly 1 https://wordpress.org/?v=6.4.2 By: Gerasimos Tsiamalos https://www.cssigniter.com/13-essential-wp-config-php-tweaks-every-wordpress-user-should-know/#comment-356269 Thu, 12 Oct 2023 15:49:14 +0000 https://www.cssigniter.com/?p=26880#comment-356269 In reply to Louis.

Ah, perfect, thanks for these!

]]>
By: Louis https://www.cssigniter.com/13-essential-wp-config-php-tweaks-every-wordpress-user-should-know/#comment-356268 Thu, 12 Oct 2023 15:41:22 +0000 https://www.cssigniter.com/?p=26880#comment-356268 Here’s a few more below.

1) Add this temporarily, to be able to upload SVGs, fonts and whatnot:

define( ‘ALLOW_UNFILTERED_UPLOADS’, true );

2) Use this for an encrypted connection to the MySQL database using SSL (should be configured at the server level as well in order for this to work):

define(‘MYSQL_CLIENT_FLAGS’, MYSQLI_CLIENT_SSL);

3) WP_MEMORY_LIMIT has a sibling called WP_MAX_MEMORY_LIMIT, that should be mentioned too:

“WP_MEMORY_LIMIT is the value for the WordPress Memory Limit, usually referred to the frontend memory, and WP_MAX_MEMORY_LIMIT is the value for the PHP Memory Limit, usually referred to the backend memory.”

Both of these are per script memory limits.

]]>