public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Get the certificate details for a user, or false if not found.
 *
 * @since 1.0.0
 *
 * @param string $accessID The unique access key for the certificate.
 *
 * @return object The certificate details if they were found, or false if not found.
 */
Get the certificate details for a user, or false if not found.

@param string $accessID The unique access key for the certificate.

@return object The certificate details if they were found, or false if not found.
Get the certificate details for a user or false if not found . @param string $accessID The unique access key for the certificate . @return object The certificate details if they were found or false if not found .
function WPCW_certificate_getCertificateDetails_byAccessKey( $accessKey ) {
	if ( ! preg_match( '/^[A-Za-z0-9]{32}$/', $accessKey ) ) {
		return false;
	}
	global $wpcwdb;
	return getRecordDetails( $wpcwdb->certificates, 'cert_access_key', $accessKey );
}
function WPCW_certificate_getCertificateDetails_byAccessKey ( $ accessKey ) { if ( ! preg_match ( '/^[A-Za-z0-9]{32}$/' , $ accessKey ) ) { return false ; } global $ wpcwdb ; return getRecordDetails ( $ wpcwdb -> certificates , 'cert_access_key' , $ accessKey ) ; }
Get the certificate details for a user, or false if not found.
Get the certificate details for a user or false if not found .
// Validate for a MD5 hash