public/wordpress/wp-content/plugins/wp-courseware/includes/admin/pages/page-courses.php
/**
	 * Add Quiz Needs Grading Icon Count.
	 *
	 * @since 4.1.0
	 */
Add Quiz Needs Grading Icon Count.
Add Quiz Needs Grading Icon Count .
public function add_icon_count() {
		global $submenu;
		if ( ! isset( $submenu[ $this->admin->get_slug() ] ) ) {
			return false;
		}
		foreach ( $submenu[ $this->admin->get_slug() ] as $index => $details ) {
			if ( $details[2] === $this->get_slug() ) {
				$quiz_count = wpcw()->courses->get_course_quizzes_that_need_grading_count();
				if ( $quiz_count > 0 ) {
					$submenu[ $this->admin->get_slug() ][ $index ][0] .= sprintf( '&nbsp;&nbsp;<span class="update-plugins count-%d"><span class="update-count">%s</span></span>', $quiz_count, $quiz_count );
				}
				return;
			}
		}
	}
public function add_icon_count ( ) { global $ submenu ; if ( ! isset ( $ submenu [ $ this -> admin -> get_slug ( ) ] ) ) { return false ; } foreach ( $ submenu [ $ this -> admin -> get_slug ( ) ] as $ index => $ details ) { if ( $ details [ 2 ] === $ this -> get_slug ( ) ) { $ quiz_count = wpcw ( ) -> courses -> get_course_quizzes_that_need_grading_count ( ) ; if ( $ quiz_count > 0 ) { $ submenu [ $ this -> admin -> get_slug ( ) ] [ $ index ] [ 0 ] .= sprintf ( '&nbsp;&nbsp;<span class="update-plugins count-%d"><span class="update-count">%s</span></span>' , $ quiz_count , $ quiz_count ) ; } return ; } } }
Add Quiz Needs Grading Icon Count.
Add Quiz Needs Grading Icon Count .