The MU forums have moved to WordPress.org

Add code to index.php (2 posts)

  1. jeverington
    Member
    Posted 14 years ago #

    Hi,

    Is there anyway i can add some code to the top of the index.php file automatically?
    Every time i upgrade i have to put the code back. I use it as password protection to all the blogs within my domain.
    I was thinking a mu plugin would be the answer but have no idea on how to do it!

    Thanks

    James

  2. wpmuguru
    Member
    Posted 14 years ago #

    You could try putting it in wp-config.php. That's close to the first of the load process and doesn't get replaced on upgrade.

About this Topic

  • Started 14 years ago by jeverington
  • Latest reply from wpmuguru