dozent_instructor_block( int $instructor_id )


Parameters

$instructor_id

(int) (Required) Block an instructor from the DozentLMS


Source

File: includes/core-functions.php

	function dozent_instructor_block($instructor_id = 0)
	{

		do_action('dozent_instructor_block_before', $instructor_id);
		update_user_meta($instructor_id, '_dozent_instructor', 'blocked');

		$instructor = new WP_User($instructor_id);
		$instructor->remove_role(DOZENT_INSTRUCTOR_ROLE);

		do_action('dozent_instructor_block_after', $instructor_id);

	}


Changelog

Changelog
Version Description
DozentLMS 1.0.0 Introduced.