How can I redefine WordPress wp-content directory programmatically?


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.


//Rename wp-content folder
define ('WP_CONTENT_FOLDERNAME', 'Folder_Name');
km onur 3 weeks 0 Answers 3 views 0

Leave an answer