Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LifterLMS::define_constants()
Define LifterLMS Constants
Return Return
(void)
Source Source
File: class-lifterlms.php
private function define_constants() { llms_maybe_define_constant( 'LLMS_VERSION', $this->version ); llms_maybe_define_constant( 'LLMS_TEMPLATE_PATH', $this->template_path() ); llms_maybe_define_constant( 'LLMS_PLUGIN_URL', plugin_dir_url( LLMS_PLUGIN_FILE ) ); $upload_dir = wp_upload_dir(); llms_maybe_define_constant( 'LLMS_LOG_DIR', $upload_dir['basedir'] . '/llms-logs/' ); llms_maybe_define_constant( 'LLMS_TMP_DIR', $upload_dir['basedir'] . '/llms-tmp/' ); if ( ! defined( 'LLMS_ASSETS_SUFFIX' ) ) { // If we're loading in debug mode. $debug = ( defined( 'SCRIPT_DEBUG' ) ) ? SCRIPT_DEBUG : false; // If debugging, load the unminified version otherwiser load minified. $min = ( $debug ) ? '' : '.min'; define( 'LLMS_ASSETS_SUFFIX', $min ); } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.0.0 | Moved definitions of LLMS_PLUGIN_FILE and LLMS_PLUGIN_DIR to the main lifterlms.php file. Use llms_maybe_define_constant() to reduce code complexity. |
3.17.8 | Added LLMS_PLUGIN_URL && LLMS_ASSETS_SUFFIX . |
1.0.0 | Introduced. |