learndash_assignment_uploaded

do_action( 'learndash_assignment_uploaded',  int $assignment_post_id,  array $assignment_meta )

Fires after the assignment is uploaded.


Description #


Parameters #

$assignment_post_id

(int) The assignment post id created after the assignment upload.

$assignment_meta

(array) Assignment meta data.


Source #

File: includes/ld-assignment-uploads.php


Examples #

 <?php
/**
 * Example usage for learndash_assignment_uploaded action.
 */
add_action(
	'learndash_assignment_uploaded',
	function( $assignment_post_id, $assignment_meta ) {
		// May add any custom logic using $assignment_post_id, $assignment_meta

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

Changelog #

Changelog
Version Description
2.2.0 Introduced.