The contents of the wp-content folder can differ from one WordPress site to another. However, most WordPress websites generally have these:
- [dir] themes
- [dir] plugins
- [dir] uploads
WordPress retains your themes files / wp-content/themes/ folder. You may edit theme files, and it’s typically not suggested. Once you upgrade your theme to your brand new variant, your adjustments will likely be flashed throughout the upgrade.
This really is the main reason it’s advised to make a child theme for WordPress theme personalization. Each and every WordPress plugins that you transfer to your computer and install on your website is going to be stored in the wp-content/plugins/ folder.
You’re not assumed to edit plugin files unless you composed the plugin only for your own WordPress website.
In most WordPress tutorials, you will also notice code snippets that may add to your WordPress website. The most acceptable method to add customized code into a WordPress website is simply adding it to the functions.php file for the child theme or merely developing a site-specific plugin.
WordPress saves most your image and video transfer in the wp-content/uploads/ folder. By default option, uploads are coordinated /year/month/ folders. Whenever you’re creating a WordPress backup, then you will include the uploads folder.
Other default profile folders you will find on your wp-content listing.
- Languages # WordPress saves language files for non-English WordPress sites within such a specific folder.
- Upgrade # this is a temporary folder made by WordPress throughout upgrade to a brand new variant.
A lot of WordPress plugins can also make their particular folders as part of your wp-content folder.
By way of instance, in the screenshot above, we have a gallery folder created by the Envira Gallery plugin.
Several of these folders can comprise essential files. Much like the gallery may contain your gallery images. You always ought to copy such folders to prevent losing important data.
Additional folders can comprise files you may securely delete by way of instance that your caching plugins such as W3 Total Cache or even WP Super Cache can save cached documents inside their folders.
That is all we hope that this post helped you know WordPress file and directory structure.