-
Notifications
You must be signed in to change notification settings - Fork 43
Supported Constants
The following table contains all constants which were used by teachPress. You can overwrite the values if you define the constants in the wp-config.php.
Example:
// Set the teachPress menu entries under the comments menu entry
define('TEACHPRESS_MENU_POSITION', 25);
Since: 5.0.0 | Default: true
Description:
Defines if the course module of teachPress is active or notSince: 5.0.0 | Default: true
Description:
Defines if the publication module of teachPress is activeSince: 6.0.0 | Default: false
Description:
Defines if if the altmetric support is available (loads external sources)Since: 6.2.0 | Default: https://dx.doi.org/
Description:
Can overwrite the current DOI resolver URLSince: 5.0.13 | Default: false
Description:
Defines if the error reporting is active or notSince: 5.0.0 | Default: linksecure tp_file_link
Description:
Defines the CSS classes for file links which are inserted via the tinyMCE pluginSince: 5.0.16 | Default: true
Description:
Defines if foreign key checks are enabled or disabled, while adding database tablesSince: 6.3 | Default: true
Description:
Defines if teachPress loads the academicons fontSince: 6.3 | Default: true
Description:
Defines if teachPress loads the font awesome fontsSince: 6.3 | Default: null
Description:
This value defines the position in the admin menu.Options:
- null --> position at the end of the default menu
- int [0..99] --> individual position For more see: [WordPress Developer Documentation](https://developer.wordpress.org/reference/functions/add_menu_page/#default-bottom-of-menu-structure)
Example:
// Set the teachPress menu entries under the comments menu entry
define('TEACHPRESS_MENU_POSITION', 25);
Since: 6.0.0 | Default: plugin_dir_path(__FILE__) . 'templates/'
Description:
Defines if the publication module of teachPress is activeSince: 5.0.0 | Default: 240
Description:
Is used for PHP’s set_time_limit(). The plugin sets this value before an import or export of publicationsExample:
// Set the time limit to 320 Seconds
define('TEACHPRESS_TIME_LIMIT', 320);
Since: 5.0.0
Description:
Defines the table name for teachpress_artefacts.Since: 5.0.0
Description:
Defines the table name for teachpress_assessments.Since: 5.0.0
Description:
Defines the table name for teachpress_authors.Since: 5.0.0
Description:
Defines the table name for teachpress_course_cababilites.Since: 5.0.0
Description:
Defines the table name for teachpress_course_documents.Since: 5.0.0
Description:
Defines the table name for teachpress_course_meta.Since: 5.0.0
Description:
Defines the table name for teachpress_courses.Since: 5.0.0
Description:
Defines the table name for teachpress_pub.Since: 5.0.0
Description:
Defines the table name for teachpress_pub.Since: 5.0.0
Description:
Defines the table name for teachpress_pub_meta.Since: 5.0.0
Description:
Defines the table name for teachpress_rel_pub_auth. This is the relationship publications to authors.Since: 5.0.0
Description:
Defines the table name for teachpress_relation. This is the relationship tags to publications.Since: 5.0.0
Description:
Defines the table name for teachpress_settings.Since: 5.0.0
Description:
Defines the table name for teachpress_signup.Since: 5.0.0
Description:
Defines the table name for teachpress_stud.Since: 5.0.0
Description:
Defines the table name for teachpress_stud_meta.Since: 5.0.0
Description:
Defines the table name for teachpress_tags.Since: 5.0.0
Description:
Defines the table name for teachpress_user.