ld_added_course_group_access

do_action( 'ld_added_course_group_access',  int $user_id,  int $group_id )

Fires after the user is added to the course group access meta.


Description #


Parameters #

$user_id

(int) User ID.

$group_id

(int) Group ID.


Source #

File: includes/ld-groups.php


Examples #

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

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

Changelog #

Changelog
Version Description
2.1.0 Introduced.