LLMS_Install::remove_difficulties()

Remove the difficulties created by the create_difficulties() function


Description Description

Used during uninstall when "remove_all_data" is set.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.install.php

	public static function remove_difficulties() {

		foreach ( self::get_difficulties() as $name ) {

			$term = get_term_by( 'name', $name, 'course_difficulty' );
			if ( $term ) {

				wp_delete_term( $term->term_id, 'course_difficulty' );

			}
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.3.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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