Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • 2017.09.28 - Elegant Themes - wp-content – A Beginner’s Guide to WordPress’ Most Important Directory
    • Intro
      • wp-content is "one of the most central parts" of the WordPress file structure
    • How to Access wp-content
      • It's in the root directory of your WordPress installation.
      • Use an FTP client like Filezilla to access it.
    • What is the Purpose of wp-content?
      • wp-content contains all user-supplied content. Basically anything you can upload to your site ends up here. That doesn’t include anything you write, mind you. Those things are stored in the WordPress database.

      • However, as long as you have both the database and your wp-content folder, you can always get your site back, even if everything else was lost.

      • The three root files / folders the author says are necessary to create a full back-up are: wp-content (folder), .htaccess (file), and wp-config.php (file).
    • So, What Exactly is Inside wp-content Then?
      • Standard Directories of wp-content
        • Plugins — As you can infer from the name, this is the place where WordPress stores plugins.
        • Themes — Similar to the plugins folder but for themes.
        • Uploads —- This is where WordPress stores all your media, like images, videos or other files you upload to your site.
      • Other Common Folders
        • mu-plugins — This is short for must-use plugins. Must-use plugins come with some themes and are crucial to make your theme and site work.
        • Languages — In case your site does not use English but one of the many other languages the CMS is available in, WordPress will save the language files inside this directory.
        • Upgrade — This is a temporary folder created by WordPress while upgrading your site to a new version.
      • Aside from that, other plugins might sometimes create their own directories inside wp-content.
    • When to Use wp-content
      • Fix Important Errors
        • The content of wp-content can sometimes be the cause of common WordPress errors. Specifically those caused by plugins and themes. When that happens and your site becomes inaccessible, you might have to access the plugin folder to deactivate some of them manually and get back into WordPress backend.

      • Rename wp-content
        • Despite its vital function, the name of wp-content is not set in stone. It’s entirely possible to change it to something else. Because WordPress is open source, anyone can figure out the basic structure of any site. The standard setup of WordPress is common knowledge, which makes it easier to start an attack. For that reason, renaming wp-content is one step towards a safer site.

    • wp-content in a Nutshell
      • wp-content houses any content provided by users that is not saved in the database. That includes plugins, themes and uploaded media.

The database

...

...

Advanced info on the major plugins

ACF / Advanced Custom Fields

WooCommerce

Image handling

...