LLMS_Install::create_difficulties()
Create basic course difficulties on installation
Return Return
(void)
Source Source
File: includes/class.llms.install.php
public static function create_difficulties() { foreach ( self::get_difficulties() as $name ) { // Only create if it doesn't already exist. if ( ! get_term_by( 'name', $name, 'course_difficulty' ) ) { wp_insert_term( $name, 'course_difficulty' ); } } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.4 | Introduced. |