PHP files can be added to WordPress in a variety of ways, depending on the type and purpose of the file. Generally speaking, your PHP files should go into one of three folders: wp-content, root website, and the theme's functions.