course_info_shortcode_after_item

apply_filters( 'course_info_shortcode_after_item',  string $content,  WP_Post $quiz,  array $quiz_progress_data,  int $user_id )

Filters content to be echoed after course info shortcode item.


Description #


Parameters #

$content

(string) The content to be echoed after course info item.

$quiz

(WP_Post) The WP_Post quiz object.

$quiz_progress_data

(array) An array of quiz data.

$user_id

(int) User ID.


Source #

File: themes/legacy/templates/quiz_progress_rows.php


Examples #

 <?php
/**
 * Example usage for course_info_shortcode_after_item filter.
 */
add_filter(
	'course_info_shortcode_after_item',
	function( $content, $quiz, $quiz_progress_data, $user_id ) {
		// May add any custom logic using $content, $quiz, $quiz_progress_data, $user_id.

		// Always return $content.
		return $content;
	},
	10,
	4
);
 

Changelog #

Changelog
Version Description
2.1.0 Introduced.