true, 'ITALYSTRAP_FILE' => $_file, 'ITALYSTRAP_PLUGIN_PATH' => $plugin_dir_path, 'ITALYSTRAP_PLUGIN_URL' => plugin_dir_url( $_file ), 'ITALYSTRAP_BASENAME' => plugin_basename( $_file ), 'ITALYSTRAP_CONFIG_PATH' => $plugin_dir_path . 'config/', 'GET_BLOGINFO_NAME' => get_option( 'blogname' ), 'GET_BLOGINFO_DESCRIPTION' => get_option( 'blogdescription' ), 'HOME_URL' => get_home_url( null, '/' ), 'DS' => DIRECTORY_SEPARATOR, ); italystrap_define_constants( $default_constants ); } } if ( ! function_exists( 'italystrap_define_constants' ) ) { /** * Define constant from a configuration array * * @param array $constants An array with constant key value to generate. */ function italystrap_define_constants( array $constants = array() ) { foreach ( $constants as $name => $value ) { if ( ! defined( $name ) ) { define( $name, $value ); } } } }