Using the following snippet you will be able to rename WordPress folder.
1 2 3 4 | define ( 'WP_CONTENT_FOLDERNAME', 'public' ); define ( 'WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME ); define ( 'WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/' ); define ( 'WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME ); |
Snippet Source/Credit: Snipplr