learndash-assignment-uploads-message

do_action( 'learndash-assignment-uploads-message',  int $course_step_post_id,  int $course_id,  int $user_id )

Fires inside assignment upload message wrapper.


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/upload.php


Examples #

 <?php
/**
 * Example usage for learndash-assignment-uploads-message action.
 */
add_action(
	'learndash-assignment-uploads-message',
	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
);