Constants

WP Framework defines several constants that are available to you throughout your template files.

General constants

WPFRAMEWORK
WP Framework’s version number.
THEMEOPTIONS
The name of the theme’s option db name

Filepath constants

THEMELIB
File path to the library/ directory
THEMEADMIN
File path to the admin/ directory
THEMECORE
File path to the functions/ directory
THEMEMORE
File path to the extensions/ directory
THEMEMEDIA
File path to the media/ directory
THEMECSS
File path to the css/ directory
THEMEJS
File path to the js/ directory
THEMEIMAGES
File path to the images/ directory

URI location constants

THEMEURI
URI location to the theme’s root directory
MOREURI
URI location to the extensions/ directory
LIBRARY
URI location to the library/ directory
MEDIA
URI location to the media/ directory
CSS
URI location to the css/ directory
JS
URI location to the js/ directory
IMAGES
URI location to the images/ directory

Using Constants in your template files

<?php echo WPFRAMEWORK; ?>

Return them for use in a variable:

<?php $variable = WPFRAMEWORK; ?>

Or use them in functions:

<?php include( THEMEMEDIA . '/file.php' ); ?>
<?php get_option( THEMEOPTIONS ); ?>

Download WP Framework

Discuss WP Framework

Stop by the forums and get help with your customizations!

    It Seem There Is Something Wrong With BBLD Configuration, Please Check It.

WP Framework on Twitter!

Follow WP Framework and stay in the loop on WP Framework happenings!