Browse: Home / Hooks /

learndash-assignment-row-columns-before

do_action( 'learndash-assignment-row-columns-before',  WP_Post $assignment,  int $post_id,  int $course_id,  int $user_id )

Fires before the assignment post link.


Description #


Parameters #

$assignment

(WP_Post) WP_Post object for assignment.

$post_id

(int) Post ID.

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

File: themes/ld30/templates/assignment/partials/row.php


Examples #

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

 <?php
/**
 * Example usage for learndash-assignment-row-columns-before action.
 */
add_action(
	'learndash-assignment-row-columns-before',
	function( $assignment, $post_id, $course_id, $user_id ) {
		// May add any custom logic using $assignment, $post_id, $course_id, $user_id

	},
	10,
	4
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.