WordPress.org

Ready to get started?Download WordPress

Forums

Where to store custom functions? (2 posts)

  1. Blutarsky
    Member
    Posted 4 years ago #

    Hi there, I would like to know how to manage custom functions, theme independent:
    - where to store the .php source file
    - how to instruct WP to load that .php file
    - how to enable global visibility of functions

  2. stvwlf
    Member
    Posted 4 years ago #

    Typically functions are kept by theme, in the functions.php file that is part of most themes. You could add an include statement in that file to include your file of generic functions.

Topic Closed

This topic has been closed to new replies.

About this Topic