WordPress.org

Ready to get started?Download WordPress

Forums

files (6 posts)

  1. stijn03
    Member
    Posted 2 years ago #

    what are the files for that reside outside wp-admin, wp-content and wp-include?

    namely all the wp-'files' e.g. wp-activate.php etc...

    what's their relation/ function to the theme?

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    No relation to the theme... per se

    the index.php is the little file that makes everything work. It boots the WP environment

    the rest of the files help with login, registration, account activation, etc.

    They all have various functions within WP core.

    index.php loads wp-blog-header.php which loads wp-load.php and template-loader.php which fires up WP and gets your theme loaded.

    So they aren't part of, or directly related to the theme, they get everything fired up, and handle some important functions

  3. stijn03
    Member
    Posted 2 years ago #

    so if i understand, they are per se needed because they not only load the theme but they have also some functions that are used by the theme?

    Else, with a different URL i could just go to the theme, right?

  4. Jeff Sebring
    Member
    Posted 2 years ago #

    Yes, you need all the files in WordPress Core.

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 2 years ago #

    Else, with a different URL i could just go to the theme, right?

    I'm sorry, I don't quite understand what is being asked here.

    But, all the files for wordpress, that is everything installed in root (the files you were asking about), plus the files in wp-admin, and wp-includes are considered core files.

    Core files must all be kept in place, never deleted or edited. They make WP work. There are tonnes of files there, and they all have some little hand in making WP function.

  6. stijn03
    Member
    Posted 2 years ago #

    ok i got it more or less. Is there a reason why those files are not just placed in the wp-include directory?

    Suppose i want to have a blog in a website and modify the blog according to the style of the website, i could do this entirely by changing the files in the theme folder?

    thanks for the replies already!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.