LLMS_Abstract_User_Engagement::get_user_postmeta()

Retrieve user postmeta data for the achievement or certificate.


Return Return

(stdClass)


Top ↑

Source Source

File: includes/abstracts/llms-abstract-user-engagement.php

	public function get_user_postmeta() {

		global $wpdb;

		return $wpdb->get_row( // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
			$wpdb->prepare(
				"SELECT user_id, post_id FROM {$wpdb->prefix}lifterlms_user_postmeta WHERE meta_value = %d AND meta_key = %s",
				$this->get( 'id' ),
				$this->get_user_post_meta_key()
			)
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Migrated from LLMS_User_Certificate and LLMS_User_Achievement.
3.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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