30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

LearnDash Get Notification

learndash/get-notification fetches a single notification: its subject, its raw email body, the trigger that fires it, the recipient, the scope and the send delay.

The body is returned unrendered.

At a glance

Abilitylearndash/get-notification
ToolsetLearnDash — toolset/learndash
GroupLearnDash › Notifications
RequiresAcrossAI Pro, plus LearnDash LMS active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Pro 0.9.16 and later

How it works

That is deliberate. LearnDash merge shortcodes — [user_login], [course_title], [quiz_title] and the rest — are the mechanism that personalises the email, and rendering them here would replace them with values from no particular context.

Worse, an edit written against a rendered body would strip the shortcodes, producing an email that greets every learner by the name of whoever the read happened to resolve.

So the body comes back raw, shortcodes intact, ready to be edited and written back.

The recipient setting decides who gets it, which is frequently not the learner — admin notifications and group-leader notifications use the same system.

The delay and its unit turn an immediate email into a scheduled one, and a notification with a delay is easy to test wrongly because it does not arrive when you expect.

Input

NameTypeRequiredWhat it is
notification_idintegerYesThe notification.

What comes back

NameTypeWhat it is
notificationobjectSubject, raw body, trigger, recipient, scope and delay.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

What does our course completion email say?

It resolves to one call:

{
  "ability": "learndash/get-notification",
  "parameters": {
    "notification_id": 950
  }
}

Worth knowing

  • The body is raw so the merge shortcodes survive editing.
  • Editing a rendered body would strip the personalisation.
  • The recipient is often an admin or group leader, not the learner.
  • A delayed notification does not arrive when you test it.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading