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 #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?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
},
10,
2
);
Changelog #
| Version | Description |
|---|---|
| 2.2.0 | Introduced. |