You are currently viewing How To Replace WordPress Core File?

At times, you may need to replace WordPress core files.
In that case:

  1. First, take a backup of your website ‍so that you may revert back to the website if anything goes wrong. We are going to remove almost all the WordPress files just without the main files of a WordPress website, those that we are keeping are: â€œwp_content” folder and â€œwp_config.php” file.

2. Before replacing, check the WordPress version. Because if WordPress is an older version and if you replace it with a newer version, then the website may have a different problem other than the problem that you are currently facing.

3. To check the version, log in to your cPanel then go to â€œFile Manager” and click on the â€œwp_includes” folder from â€œpublic_html” file.

Wordpress core file 2

4. On the new page, you will see some folders and files. Now scroll down at the bottom of this page and click on â€œversion.php” then click on the â€œview” button at the top of this page.

Wordpress core file 3

5. Now from the new page, you will find the WordPress version.

Wordpress core file 1

6. Then you will need to download a new WordPress to replace it. You can download a New or Old version from here:

Get a New Version Of WordPress:

Get an old version of WordPress:

7. The website will work only if you leave the â€œwp_content” folder and â€œwp_config.php” files and replace the rest. For this, â€œwp_content” and â€œwp_conflig.php” should be left and the rest should be deleted.

8. Now extract the previously downloaded WordPress file and delete the two files â€œwp_content” and â€œwp_conflig.php” from there and compress the rest of those files on your computer. After that, you have to upload that compressed (zip) file to cPanel and â€œExtract” it in the “public_html” file.

9. Finally, after replacing the core files check the â€œwp_content” folder to see if there are any cache files. If there are cache files, you may need to â€œDelete” those files too.

After replacing the core file in this way, now you should check to see if the problem is solved.

āĻāĻ‡ āĻ•āĻ¨āĻŸā§‡āĻ¨ā§āĻŸ āĻŦāĻžāĻ‚āĻ˛āĻžāĻ¯āĻŧ āĻĒāĻĄāĻŧā§āĻ¨: āĻ“ā§ŸāĻžāĻ°ā§āĻĄāĻĒā§āĻ°ā§‡āĻ¸ā§‡āĻ° āĻ•ā§‹āĻ° āĻĢāĻžāĻ‡āĻ˛ āĻ•āĻŋāĻ­āĻžāĻŦā§‡ āĻ°āĻŋāĻĒā§āĻ˛ā§‡āĻ¸ āĻ•āĻ°āĻ¤ā§‡ āĻšā§Ÿ ?