• LifterLMS
  • Knowledge Base
  • Academy
  • Blog
  • Podcast
  • Contributors
  • My Account

LifterLMS LifterLMS

  • Code Reference
  • REST API
  • LLMS-CLI

Code Reference

Skip to content
Filter by type:
Search
Browse: Home / Code Reference / Classes / LLMS_Email_Engagement / LLMS_Email_Engagement::set_shortcode_user()

LLMS_Email_Engagement::set_shortcode_user( int $uid )

Set the user ID used by [llms-user] to the user receiving the email.

Contents

  • Parameters
  • Return
  • Source
  • Changelog
  • User Contributed Notes

Parameters #Parameters

$uid

(int) (Required) WP_User ID of the current user.


Top ↑

Return #Return

(int)


Top ↑

Source #Source

File: includes/emails/class.llms.email.engagement.php

	public function set_shortcode_user( $uid ) {
		return $this->student->ID;
	}

Expand full source code Collapse full source code View on GitHub


Top ↑

Changelog #Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes #User Contributed Notes

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

© 2014 - 2023 LifterLMS · Privacy Policy · Terms and Conditions

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.