Dozent LMS developer documentation

  • Go To DozentLMS.com
Skip to content
Filter by type:
Search
Browse: Home / Classes / InstructorsList / InstructorsList::column_total_course()

InstructorsList::column_total_course( $item )


Source

File: classes/InstructorsList.php

	function column_total_course( $item ) {
		global $wpdb;

		$total_course
			= (int) $wpdb->get_var( "select count(ID) from {$wpdb->posts} WHERE post_author={$item->ID} AND post_type = 'dozent_course' " );

		echo $total_course;
	}

Expand full source code Collapse full source code

© 2023, Dozent LMS