WordPress.org

Support

Support » Miscellaneous » [Resolved] File naming conventions

[Resolved] File naming conventions

  • Hi all, forgive me if this is off-topic.

    I’ve just started looking at what seems to be a fantastic piece of software and I have a question on the file-naming conventions:

    Why are some scripts prefixed with “wp-” (wp-blog-header.php, wp-login.php, wp-pass.php, etc) and some (classes.php, class-snoopy.php, functions-post.php, vars.php, streams.php, etc) are not?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Top-level files are prefixed with wp- so that you can install WordPress in the root of your site along with other files, without clobbering anything.

    The directories that start with wp- (like wp-includes and wp-admin) contain the prefix to note that they’re WordPress-related. Files inside these directories should be inferred to be WordPress files, and as such do not require the prefix.

    A nice, concise explanation which makes sense. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] File naming conventions’ is closed to new replies.
Skip to toolbar