Retrieve user postmeta data for the achievement or certificate.

Return Return


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
				"SELECT user_id, post_id FROM {$wpdb->prefix}lifterlms_user_postmeta WHERE meta_value = %d AND meta_key = %s",
				$this->get( 'id' ),

Top ↑

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.