Browse: Home / Hooks /

learndash-course-row-before

do_action( 'learndash-course-row-before',  int $course_id,  int $user_id )

Fires before the course row.


Description #


Parameters #

$course_id

(int) Course ID.

$user_id

(int) User ID.


Source #

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


Examples #

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

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

	},
	10,
	2
);
 

Changelog #

Changelog
Version Description
3.0.0 Introduced.