'WordPress automatically creates wp-content folder when I rename it

I am trying to rename the wp-content folder but WordPress automatically creates it again.

I am adding the code below in wp-config.php file:

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */

if ( !defined('ABSPATH') )

define('ABSPATH', dirname(__FILE__) . '/');

define ('WP_CONTENT_FOLDERNAME', 'assets'); 
define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME) ;
define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');
define('WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME);

Then I rename 'wp-content' to 'assets' but WordPress automatically creates the wp-content folder again.

Is this normal? Am I doing everything correct?

I also tried this by iThems plugin but is the same.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source