learndash-assignment-list-before-aproval-alert

do_action( 'learndash-assignment-list-before-aproval-alert',  int $course_step_post_id,  int $course_id,  int $user_id )

Fires before the assignment approval alert.


Description #


Parameters #

$course_step_post_id

(int) Post ID for the Lesson/Topic being shown.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/assignment/listing.php


Examples #

 <?php
/**
 * Example usage for learndash-assignment-list-before-aproval-alert action.
 */
add_action(
	'learndash-assignment-list-before-aproval-alert',
	function( $course_step_post_id, $course_id, $user_id ) {
		// May add any custom logic using $course_step_post_id, $course_id, $user_id

		echo '<div>Custom content or markup</div>';
	},
	10,
	3
);