WordPress GuideDevelopment → Core

What is WordPress Core? WordPress Core Explained

working on wordpress core

WordPress core is the set of foundational files that make every WordPress site work. It powers your dashboard and your database connection. It handles page rendering and login sessions. And it provides the underlying logic that themes and plugins build on top of. Without it, the rest of your site has nothing to run on.

This guide covers what WordPress core is and how it interacts with themes and plugins. You’ll also learn why you should never modify core files directly, how to update WordPress safely, and how to contribute to its ongoing development.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

What is WordPress core?

WordPress core is the codebase you download from WordPress.org when you install WordPress. It’s an open source platform, freely available to anyone, and it’s what every WordPress site has in common.

By default, the WordPress core lets you:

To see exactly what’s included, install WordPress fresh without any themes and plugins. What’s left is the core.

You’ll notice that core alone can’t render a public-facing site, which is why every install includes a default theme. The default themes that ship with WordPress, however, aren’t technically part of the core.

wordpress core dashboard

The four parts of every WordPress site

Every WordPress site is built from four parts. These are:

Understanding how these four pieces fit together is the foundation of working with WordPress.

WordPress core files and folders

When you unzip a WordPress download from WordPress.org and open the folder, you’ll see three top-level directories and a handful of important files.

The three core folders

The folder structure looks like this:

wordpress core files

The most important core files

Here are some of the most important files in WordPress core:

The two functions.php files

WordPress has two files named functions.php, and mixing them up is one of the most common beginner mistakes:

For anything more substantial than a few small tweaks, use a child theme or a custom plugin instead of editing the parent theme’s functions.php directly. That way, your changes survive theme updates.

How WordPress core interacts with themes and plugins

Themes and plugins don’t run in isolation. They hook into the core to display content and add features.

This is why you can switch themes, deactivate plugins, or change templates without breaking the underlying site. The core stays consistent, and everything else plugs into it via APIs.

WordPress core APIs

WordPress has several in-built APIs that let developers add features without modifying core files. These are what make custom code, plugins, and integrations possible.

The main core APIs:

Using these APIs ensures your additions stay compatible across core updates. Bypassing them and editing core files directly is how things break.

Why you should never modify WordPress core files

Editing WordPress core files is the fastest way to create problems for yourself. Here are three reasons to leave these files alone:

Where to make changes instead:

If you absolutely must edit a core file, back up your site first with a tool like Kadence Backups so you can restore quickly if something breaks.

kadence backups

How to update WordPress core

WordPress regularly releases updates to fix security vulnerabilities, patch bugs, and add features. Running an outdated version of core is one of the most common causes of WordPress sites getting hacked. So doing updates when they appear is a must.

Update from the dashboard

The easiest way to update is directly in your WordPress dashboard:

Always back up your site before any major update. The dashboard update is fast and reliable, but a failed update during a power outage or hosting hiccup can leave you in a tough spot without a recent backup.

Auto-updates

WordPress applies minor and security updates automatically if you set it to do so. You can also enable auto-updates for major releases from the same Updates screen by clicking ‘Switch to automatic updates for maintenance and security releases only,’ or ‘Enable automatic updates for all new versions of WordPress.’

auto update wordpress core

For most small business sites, automatic minor updates are a sensible default. Major releases (like WordPress 6.9) are often worth holding back a few days so plugin and theme developers can release compatibility patches.

Update with WP-CLI

If you manage your site over SSH, WP-CLI is the fastest way to update.

WP-CLI is the tool of choice for developers managing multiple sites or running updates from automation scripts.

Manual update

If automatic and CLI updates aren’t available, you can update WordPress manually. You can do this by downloading the latest version from WordPress.org, deactivating your plugins, and replacing the wp-admin and wp-includes folders with the new versions over FTP or your host’s File Manager. The WordPress documentation has a full walkthrough.

This is rarely necessary on managed hosting, but it’s a useful workaround when a dashboard update fails partway through.

How to restore a corrupted WordPress core file

Sometimes, a failed update or a malware infection corrupts a core file. Restoring is straightforward if you have a backup.

The fastest method is to use a backup tool like Kadence Backups, which keeps timestamped copies of your full WordPress install. Pick the most recent clean backup and restore.

To restore manually, take the following steps:

If you can’t identify the specific corrupted file, replacing the entire /wp-admin/ and /wp-includes/ folders with the fresh versions is a safe move. These folders only contain core files, so overwriting them won’t affect your themes, plugins, or content.

Never overwrite /wp-content/. That’s where your customizations live.

How to contribute to WordPress core

WordPress is built and maintained by a global community of contributors, and getting involved is more accessible than most people realize.

Here are some ways to contribute:

contribute to core

You don’t need to be a full-time developer to contribute. Translation, documentation, and testing are just as valuable as code, and they’re a great entry point if you’re new to open source.

Common misconceptions about WordPress core

A few myths come up often. Clearing them up helps you work with WordPress more confidently.

FAQs about WordPress core

WordPress is an open source content management system that powers more than 42% of all websites. It’s used because it’s free, flexible, and supported by a huge ecosystem of themes, plugins, and developers. You can build anything from a simple blog to a multi-million-dollar ecommerce store on it.

Yes. WordPress (downloaded from WordPress.org) is open source software released under the GPL license, which means it’s free to download, use, modify, and distribute. You’ll still pay for hosting, a domain name, and any premium WordPress themes or plugins you choose, but the WordPress software itself costs nothing.

There’s also WordPress.com, which is a hosted service run by Automattic. That’s a separate product with paid plans, but it’s built on the same open source code.

WordPress core files are the files included when you download WordPress from WordPress.org. They include everything in the /wp-admin/ and /wp-includes/ folders, plus important top-level files like wp-config.php, wp-load.php, and index.php. These files handle the WordPress admin, the database connection, page rendering, the REST API, login sessions, and everything else that makes WordPress work.

You can add custom code to your theme’s functions.php file (in your child theme to keep it update-safe). That’s the standard place for small tweaks. For anything more substantial, create a site-specific custom plugin. It’s still your code, but kept separate from your theme so it survives theme switches.

Open source means the source code is publicly available, free to use, and free to modify. WordPress is licensed under the GPL, which also requires that derivative works (themes, plugins, and so on) stay under the same license. This is why the WordPress ecosystem is so large: anyone can build on it.

The easiest way to update WordPress is from your WordPress dashboard. To do this, go to Dashboard → Updates and click Update Now. Alternatives include WP-CLI (wp core update) if you have SSH access, or a manual update by uploading the latest WordPress files over SFTP. Always back up your site first.

Download the latest version from WordPress.org, deactivate your plugins, and replace the /wp-admin/ and /wp-includes/ folders on your server with the new versions. Then visit /wp-admin/ in your browser to trigger any database updates. Your WordPress themes and plugins in /wp-content/ stay untouched.

No. WordPress.com is a hosted service built on the same WordPress software, but it’s a different product with its own pricing and feature limits. The free, open-source WordPress you can install anywhere is at WordPress.org.

Ready to get started?

Get the fastest, most secure WordPress.org hosting on the market.

Additional resources

What is managed WordPress hosting? →

Get details and decide if managed WordPress hosting is right for you.

How to push specific pages in WordPress →

Easily push specific pages from staging to live in WordPress without affecting the entire site.

A complete guide to WordPress shortcodes →

Shortcodes make life easier. Learn how to get started!

Trust us to help you choose the ideal hosting solution

Loading form…