learndash_assignment_approved

do_action( 'learndash_assignment_approved',  int $assignment_id )

Fires after assignment is approved


Description #


Parameters #

$assignment_id

(int) Assignment ID.


Source #

File: includes/ld-assignment-uploads.php


Examples #

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

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

Changelog #

Changelog
Version Description
2.2.0 Introduced.