LLMS_Notification_Controller_Enrollment::action_callback( int $user_id = null, int $post_id = null )

Callback function, called after enrollment into a course


Parameters Parameters

$user_id

(int) (Optional) WP User ID of the user

Default value: null

$post_id

(int) (Optional) WP Post ID of the course or membership

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/notifications/controllers/class.llms.notification.controller.enrollment.php

	public function action_callback( $user_id = null, $post_id = null ) {

		$this->user_id = $user_id;
		$this->post_id = $post_id;
		$this->course  = llms_get_post( $post_id );

		$this->send();

	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.