Can I create “inc” folder inside wordpress root directory?

Can I create inc folder “mysite.com/inc/” inside wordpress root directory as per wordpress standard. I need to place my supported php files.

Please help.

Related posts

Leave a Reply

1 comment

  1. Technically you can and it’s even going to stay there when you upgrade.

    However: if you put stuff into WordPress you may seriously want to consider using WordPress’ plugin and theme architecture. If you are writing an include for a theme, put it within the theme’s directory. If it’s a plugin, place it as a plugin. This will allow for easy packaging in case you need to move to different WordPress instance.

    For a more detailed walkthrough of the directory structure check out this post.