To rename the wp-content and wp-admin folders in WordPress, you can use constants defined in the wp-config.php file. The following constants can be used to rename wp-content folder:
define('WP_CONTENT_FOLDERNAME', 'Folder_Name'); define('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME); define('WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . "https://wordpress.stackexchange.com/" . WP_CONTENT_FOLDERNAME);
For wp-admin folder, renaming it using constants is not recommended as it may cause issues with WordPress core files. It is recommended to leave the wp-admin folder as is.
Related Posts:
- How to disable sub menu items from being created?
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- How to change wp-admin and wp-login urls
- How to make a image-size selected by default in Media upload – WP v3.5
- adding a filter to a shortcode?
- How to add some custom HTML to the edit posts page
- Permanently remove first image from posts
- Change the footer text on the login page
- Admin Bar (Toolbar) not showing on custom PHP file that loads WordPress
- add_filter to post-gallery and remove all ‘s?
- How to overwrite youtube embed?
- Rewriting search and pagination base
- How to Join two tables from separate databases within WordPress
- Enqueue Javascript Correctly for 3.5
- Change comments form title on a page by page basis
- Filter the blog title displayed in the header
- Notice: Constant already defined in wp-config.php on (non-existent) line?
- How do I know what variables are passed in a filter/action and what their meaning is?
- body_class filter – Is there a better way to write this code?
- How to add Shortcode (font awesome) in widget title?
- Sortable admin column for one meta key with three possible meta values
- How can I change WordPress domain from remote to localhost?
- Woocommerce filter cart and category specific quantity [closed]
- Wrap First Character after in a tag
- Force SSL using FORCE_SSL_ADMIN
- Admin username and password
- Problem adding class to body_class
- Run a filter when a walker runs
- Retrieving Author ID in wp-admin area
- Nesting if statements to echo only one string based on what tag was filtered?
- How to properly loop through these external URLs to get them into the sitemap using this hook
- Input type search in Menu
- How to create a form and display its content as table in admin panel?
- Is it acceptable to treat a filter like an action?
- How can I remove a function that has been added to wordpress with add_filter?
- Edit incorrect password message WordPress
- Add data attribute to each li in menu
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- Remove metabox from WordPress menu editor page?
- How to add an arrow to menu items has submenus
- Generating an nonce for Content Security Policy and all scripts – How to make it match/persist for each page load?
- Unique icons next to each WordPress menu item
- inserting a post from an extern php file but post content doesn’t show on wp site
- Problem with login form
- How to add API security keys into JS of wordpress securely
- get_total () returns 0 – woocommerce [closed]
- What is the difference in the WP memory limits?
- Content filter won’t work
- Link blogname and blogdescription to the Options Framework
- retain querystring values when savincustom options in admin
- Warning: in_array() null given in PHP function
- WordPress wp-admin redirect and exception
- How do I create a secondary version of the_content
- WordPress redirects to old login after migration
- Displaying content on posts page based on category
- Can I remove or edit an include() from a function with a filter?
- Dynamically adding filters
- How to decrease the max file upload size without using php.ini or htaccess?
- Is there a (offical) way for a theme to deactivate itself and show a message in admin?
- WordPress doesn’t load HTML
- Help with accessing wp-admin page and resolving error messages
- How to sort WooCommerce products page by latest in-stock items first?
- Show related products by attribute based and certain conditions
- How to Create custom block for displaying information in content section which act like shortcode
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- Filter ‘comment_notification_text’ not working
- How to remove get_header From all single pages in wordpress with functions.php without plugin?
- Change the “Show All” button in a WordPress Portfolio Filter
- How can I redefine WordPress wp-content directory programmatically?
- Fatal error: wp-settings.php on line 199
- Change lost password url to a mailto URL in WordPress
- Remove span tags from WooCommerce Downloads page
- Hide Approved status for certain users in users list
- wordpress contact form messages not sending although it saying they were sent successfully with this php code
- Add a top bar to a wordpress theme without editing the header.php file?
- Save custom field on WP_List_Table
- How to bind each “the_content” elements to a custom variables
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Filter portforlio with librairie isotop
- Editing the term_order field
- add_filter() inside another add_filter()
- WP post meta – for loop inside for loop
- Custom Bulk Actions handler not firing
- dynamically change content of div with php
- wp_query beginner
- str_replace not preserving whitespace
- Resource 404 error on multisite subdirectory install
- Renaming “Expand Details” within “Add Media”
- Add custom filter to register data in array
- Add options to WordPress backend
- Display a post based on its metabox selection
- Search box background on a different page template
- admin-ajax.php loading many times
- What’s the .php file which generates the Custom Background page in the admin panel?
- How to replace wp-admin login page to another location?
- wordpress.org disallowing my plugin becuase of loading core files in cron cpanel file
- WordPress White Screen Error
- Detecting charcater encoding for wp-config.php file
- How to create a User Role and give permission to only use Web Stories plugin?
- Custom Filtering date with newsletter