Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Where to store php scripts in WP theme

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45833
    Ricky55
    Member

    Where would you guys store your own scripts in a WP theme?

    I have a php script to process a form, would you put this in the root of the site or the root of the theme?

    Just wondering what was best practice.

    #140297
    Senff
    Participant

    I would just put it in the existing functions.php actually.

    #140301
    TheDoc
    Member

    I try to keep anything that is specific to the site at hand inside the theme folder that I’m using. This is really only an appropriate approach when you’re dealing with a custom set up where you don’t expect the user to be changing themes.

    #140308
    Ricky55
    Member

    Thanks guys.

    Never thought about the functions.php although in this instance I think I’d rather keep this separate.

    It is a custom theme and it won’t be changing so I’ll go for the second option.

    Cheers lads.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Other’ is closed to new topics and replies.