LLMS_Install::create_difficulties()

Create basic course difficulties on installation


Description Description


Return Return

(void)


Top ↑

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' );

			}
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.4 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.