Browse: Home / Hooks /

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 #

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

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

	}
);
 

Changelog #

Changelog
Version Description
2.2.0 Introduced.