LLMS_Notification_Controller_Achievement_Earned::action_callback( int $user_id = null, int $achievement_id = null, int $related_post_id = null )

Callback function, called upon achievement post generation


Parameters Parameters

$user_id

(int) (Optional) WP User ID of the user who earned the achievement

Default value: null

$achievement_id

(int) (Optional) WP Post ID of the new achievement post

Default value: null

$related_post_id

(int) (Optional) WP Post ID of the post which triggered the achievement to be awarded

Default value: null


Top ↑

Return Return

(void)


Top ↑

Source Source

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

	public function action_callback( $user_id = null, $achievement_id = null, $related_post_id = null ) {

		$this->user_id         = $user_id;
		$this->post_id         = $achievement_id;
		$this->related_post_id = $related_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.