Linux 软件免费装
Banner图

LXD Integral Microcredentials for LearnDash

开发者 lxdintegral
更新时间 2026年11月18日 00:06
PHP版本: 8.1 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

badges learndash open badges microcredentials cancred

下载

1.0.0 1.0.1

详情介绍:

LXD Integral Microcredentials for LearnDash connects your LearnDash site to Open Badge Factory or CanCred Factory and issues real, verifiable Open Badges 3.0 credentials to learners automatically, with no Zapier or other external automation required. Open Badges are the standard format in which microcredentials (micro-credentials) are issued and shared. What it does Independent plugin LXD Integral Microcredentials for LearnDash is developed and published independently by LXD Integral Learning Ltd. It is not affiliated with, supported by, or endorsed by Open Badge Factory, CanCred, Learning Agents, LearnDash, StellarWP, or 1EdTech. "LearnDash" is a trademark of its respective owner and is used only to describe which product this plugin works with. Open Badges is an open standard maintained by 1EdTech; the plugin issues badges that follow it through the providers above, and is not itself a 1EdTech product or certification. Requirements Third-party services This plugin relies on an external badge-issuing service that you choose and configure. Nothing is sent anywhere until you enter API credentials on the plugin's Settings screen. When a badge is issued, the plugin sends the learner's email address and display name and the badge identifier to the configured provider over HTTPS, because the provider delivers the credential to that email address. The plugin also fetches your badge library, the share and verification links of each issued credential, and (hourly, and on demand) the status of the credentials it issued. Badge images shown in wp-admin and on your pages are loaded from the provider's servers, and the Save & share and Verify links open pages at the provider. No data is sent to LXD Integral or to any other party, and the plugin contains no tracking. Data stored on your site The plugin keeps its own tables: the synced badge library, your trigger rules, one award record per issued badge (learner user ID and email address, badge, status, dates, and the credential's links), and an activity log whose entries may name the learner. Award and log records are retained after a user account is deleted; the plugin registers with WordPress's Export Personal Data and Erase Personal Data tools, so a learner's awards can be exported and their email address removed from award records and their log entries deleted. All plugin data is removed on uninstall only if you enable "Delete all plugin data when the plugin is uninstalled" on the Settings screen. Your Client Secret is stored encrypted (libsodium) with a key derived from the site's authentication salts. Define AUTH_KEY and SECURE_AUTH_KEY in wp-config.php, as WordPress recommends, so that key is not itself stored in the database. If the salts are ever changed, the plugin asks you to re-enter the secret. Background work (issuing, retries, link fetching, status checks) runs through WP-Cron. If your site has disabled WP-Cron, make sure a system cron job calls wp-cron.php. The plugin is designed for single-site installs; on a multisite network, activate it per site. Source code The block editor script ships as compiled JavaScript in build/; its human-readable source is included in blocks/ and in the public repository at github.com/LXD-Integral/lxd-integral-microcredentials-for-learndash. To rebuild it, run npm install and then npm run build in the plugin directory; the build uses @wordpress/scripts. The PHP needs no build step.

安装:

  1. Install the plugin from the WordPress plugin directory, or upload the zip under Plugins → Add New → Upload Plugin, and activate it.
  2. Go to Open Badges → Settings, enter the Client ID and Client Secret for Open Badge Factory and/or CanCred, save, then click Test Connection.
  3. Go to Open Badges → Badges and click Sync Now to pull in the badges from each connected account.
  4. Go to Open Badges → Triggers and add a rule mapping a LearnDash completion to a badge.
  5. Add the Earned Badges block, or the [user_badges] shortcode, to any page.
The [user_badges] shortcode accepts these optional attributes: user (user ID, defaults to the current visitor), columns (1–6, default 3), size (badge image size in px, 32–256, default 96), show_name (1/0), link (1/0, link each badge image to the provider's badge page), export (1/0, "Save & share" link, owner only), verify (1/0, "Verify" link).

屏幕截图:

  • Badges: the synced badge library, with Sync Now and Refresh Award Status.
  • Triggers: rules mapping LearnDash completions to badges.
  • Issue Badges: award by hand or backfill a trigger.
  • Activity Log: every attempt, filterable and exportable.
  • The Earned Badges block on a learner's page, with Save & share, Verify, and Saved to Passport.

升级注意事项:

1.0.1 Quiz triggers no longer award a badge on a failed attempt. Badges already issued on a failed attempt are not withdrawn automatically; revoke them at your badge provider if needed. 1.0.0 First directory release. Existing 0.x installs upgrade in place; the database schema is upgraded automatically.

常见问题:

Does this work with Open Badge Factory or CanCred?

Both, including both at once. Open Badge Factory and CanCred Factory are functionally identical platforms with different geographical mandates. The plugin connects to each with its own Client ID and Client Secret, and every badge remembers which provider it came from.

Where do I get API credentials?

In the provider's console under Admin tools → API, create an API key. This requires a subscription tier with API access. Paste the Client ID and Client Secret into the plugin's Settings screen and use Test Connection.

I added a badge in the provider's console but it isn't in the plugin.

Badges are synced, not live-queried. Go to Badges → Sync Now to pull the current library. Draft badges are listed but can't be issued until published in the provider's console.

A learner completed the course. Why doesn't their badge show up immediately?

Issuance is deliberately asynchronous. When a learner completes an item, the plugin records the award and hands it to a background job, so the learner's completion is never slowed down or broken by the badge provider. The badge is normally issued within a minute or two, and an hourly safety sweep catches anything that slipped through. If a badge still hasn't appeared after an hour, check the Activity Log, where every attempt is recorded with a specific reason on failure.

Will a learner ever get the same badge twice?

No. Awards are idempotent per trigger: once a learner holds a badge from a given trigger rule, re-completing the same item does not issue a duplicate.

What happens if the provider is down?

The award is queued and retried with increasing backoff (up to five attempts), and the hourly sweep re-processes anything still outstanding. Failures appear in the Activity Log. The learner's course completion is unaffected.

Can I award badges for things that happened before I created a trigger?

Yes. Issue Badges → Backfill runs a trigger over learners who completed the item before the trigger existed. You can also issue any badge to any learner by hand from the same screen.

Can I require a minimum quiz score?

Yes. Quiz triggers accept an optional minimum percentage. A completion without a score never satisfies a score condition.

Does a failed quiz attempt award a badge?

No. A quiz trigger awards only when LearnDash records the attempt as passed, using the passing percentage set on the quiz. A minimum score on the trigger is an extra bar on top of that, not a way around it: to award at a lower score, lower the quiz's own passing percentage. Version 1.0.0 also awarded on failed attempts when the trigger had no minimum score, or one below the quiz's pass mark; 1.0.1 corrects that. Badges 1.0.0 issued on a failed attempt are not withdrawn automatically. If you need to withdraw one, revoke it at Open Badge Factory or CanCred and the plugin will hide it at its next status check.

What do the links under each earned badge do?

Save & share opens the badge's claim page at the provider, where the learner can save the badge to Open Badge Passport / CanCred Passport, share it, or download it. It appears only to the badge's owner. Verify opens the provider's public validator, which confirms that the credential is valid, not revoked, and not expired. It is shown to every visitor.

Can I show one learner's badges publicly?

Yes. The shortcode accepts a user attribute. With it, any visitor sees that learner's badge names, images, and Verify links, never the owner's claim link. Without the attribute, the list always shows the signed-in visitor's own badges.

Are these "real" Open Badges?

Yes. Every badge is issued by Open Badge Factory / CanCred Factory as a hosted Open Badges 3.0 verifiable credential.

What if a badge is revoked at the provider?

The plugin checks every issued badge's status at the provider once an hour, and immediately when you click Refresh Award Status on the Badges screen. A revoked badge disappears from the learner's list and from every public showcase, and the Activity Log records the change.

Do badges expire?

Only if the badge was set up with an expiry at the provider. The badge list then shows "Expires" with the date and, once the date passes, "Expired". Expired badges stay listed, but the owner's Save & share link is dropped.

Does the plugin work with page caches like LiteSpeed Cache?

Yes. Pages showing a visitor's own badge list are excluded from full-page caching, and issuing a badge or a status change purges the page cache. Public showcase pages remain fully cacheable.

Can learners request their data?

Yes. The plugin plugs into WordPress's Tools → Export Personal Data and Erase Personal Data: an export lists every badge awarded to the email address, and an erasure removes the email address from the award records and deletes the learner's activity-log entries. The award records themselves are kept, so a badge is never issued twice, and the credential remains at the provider.

Does it work on multisite?

Per site. Activate and configure it on each site that needs it; network activation is not supported.

What happens to my data when I uninstall?

Nothing is deleted by default: uninstalling preserves your badges, triggers, award history, and log. Tick Delete all plugin data when the plugin is uninstalled on the Settings screen if you want everything removed.

Is this plugin maintained long term?

Yes. LXD Integral Learning Ltd. has committed to maintaining the plugin until at least November 2029 (three years from the 1.0.0 release), reviewed each November. In practice that means a standing weekly support and maintenance window, a first reply to support-forum threads within a week, compatibility kept current with each WordPress major release and with the Open Badge Factory / CanCred API, and an independent security review of the code each quarter on top of the automated checks that run on every change. Updates arrive through the normal WordPress update channel.

How do I report a security issue?

Privately, please: use the "Report a vulnerability" form on the plugin's GitHub repository (https://github.com/LXD-Integral/lxd-integral-microcredentials-for-learndash/security/advisories/new), email security@lxdintegral.com, or email the WordPress.org plugins team at plugins@wordpress.org naming this plugin. The repository's SECURITY.md gives the full policy: the latest release is the supported one, reports are acknowledged within a working day, and a fix ships as a patch release on a seven-day target for anything exploitable without an administrator account. Please do not post security problems in the public support forum.

更新日志:

1.0.1 1.0.0