learndash_assignment_upload_message

apply_filters( 'learndash_assignment_upload_message',  string $message,  int $course_step_post_id,  int $course_id,  int $user_id )

Filters message shown after assignment upload.


Description #


Parameters #

$message

(string) The message showed after the assignment upload.

$course_step_post_id

(int) Course step post ID.

$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_upload_message filter.
 */
add_filter(
	'learndash_assignment_upload_message',
	function( $message, $course_step_post_id, $course_id, $user_id ) {
		// May add any custom logic using $message, $course_step_post_id, $course_id, $user_id.

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