## How can I redefine WordPress wp-content directory programmatically?

Question

How can I change the default "/wp-content/" folder name in WordPress by typing a plugin or using our theme’s "functions.php" file?

This is possible with the "wp-config.php" file. But I want it to be permanent, and I want the new name I set to be permanent whenever an update arrives. Is it possible to do this? Thank you.

wp-config.php

//Rename wp-content folder
define ('WP_CONTENT_FOLDERNAME', 'Folder_Name');

0
3 months 2020-12-29T01:10:26-05:00 0 Answers 3 views 0