Question

This question already has an answer here:

I want to rename the theme's root folder for security purpose.

I put these in wp-config.php file:

But I want to rename the theme's root directory also:

 define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/assets' );
 define( 'WP_CONTENT_URL', 'http://www.domain.in/assets');

 define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/extension' );
 define( 'WP_PLUGIN_URL', 'http://www.domain.in/assets/extension');

So, how to rename the theme's root folder like this way?

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top