Browse: Home / Hooks /

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 shown 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 #

Note: Extended code example below not guaranteed, you may need to consult with a developer

 <?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
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.