• Hi,

    I’m looking to create a customer specific defines file which will contain information such as their company name, address and phone number which will be stored in the following directory:

    theme-directory/inc/defines.php

    I’ve created the file and put it as a require within my functions file, but it doesn’t show the variables when I’d like to show them.

    So for example, in my header.php file, I’d like to show the phone number.

    The phone number is stored as a variable in defines.php as $phoneNumber

    I’ve tried to call it in the header file and echo $phoneNumber, but to no avail. I’ve tried just using a normal variable (i.e. $phoneNumber = ‘123’) and also as a global variable.

    Does anybody have any clues or advice?

The topic ‘Developing customer specific defines file for use throughout wordpress theme’ is closed to new replies.