Forums

[resolved] A bugging question that I always had about WordPress that was never answered (3 posts)

  1. TransPersonal
    Member
    Posted 2 years ago #

    Hi guys,

    I've been using WP for a while but alwaays wondered something about the amazing functions.php file.

    The code I put in my functions.php file - do these codes get read by the system every time a page on my site gets loaded? I ask because I have many "prevent default behavior" type rules for various plugins in my functions.php and am afraid that the more stuff I have in that file the slower it's going to make my site.

    Is my fear reasonable or not?

  2. iridiax
    Member
    Posted 2 years ago #

    The code I put in my functions.php file - do these codes get read by the system every time a page on my site gets loaded?

    Yes. See:

    http://codex.wordpress.org/Theme_Development#Theme_Functions_File

    I have many "prevent default behavior" type rules for various plugins in my functions.php and am afraid that the more stuff I have in that file the slower it's going to make my site.

    Since this file functions like a plugin and depending on what's in it, it could potentially slow down your site like some plugins can.

  3. TransPersonal
    Member
    Posted 2 years ago #

    Thanks that answers it.

Topic Closed

This topic has been closed to new replies.

About this Topic