learndash-woocommerce-access

learndash-woocommerce-access is a skill for Codex from Lonsdale201/wp-agent-skills. It costs 122 tokens per session (2,036 once invoked), scanned A, original, MIT.

A LearnDash and WooCommerce integration that grants or removes access to courses and groups when products, orders, refunds, subscriptions, or order items change.

In plain words
What is it for?
Use it to connect WooCommerce products to LearnDash courses or groups and to control enrollment based on order and subscription statuses.
Why use it?
It handles the full purchase lifecycle, including partial refunds, subscription switches, access expiration, and multiple products granting the same access.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to connect WooCommerce products to LearnDash courses or groups and to control enrollment based on order and subscription statuses.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/learndash-woocommerce-access
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill learndash-woocommerce-access
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for learndash-woocommerce-access

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/learndash-woocommerce-access/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/learndash-woocommerce-access)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/learndash-woocommerce-access"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/learndash-woocommerce-access/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for learndash-woocommerce-access

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/learndash-woocommerce-access"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/learndash-woocommerce-access.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,036 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 186
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.02036
Opus 5.5 $0.00049 $0.00814
Sonnet 5.5 $0.00024 $0.00407
Haiku 4.5 $0.00012 $0.00204

Measured 2mo ago against content hash 3e915d573602, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

learndash-woocommerce-access scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

learndash/learndash-woocommerce-access/SKILL.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LearnDash WooCommerce access

Use this when WooCommerce products, orders, subscriptions, refunds, or product variations must grant or revoke LearnDash course/group access.

The LearnDash WooCommerce bridge is not just "on completed order call ld_update_course_access()". It tracks product relations, variable product relations, configurable order/subscription statuses, partial refunds, subscription switches, order item mutations, access expiration, silent queued enrollment, and a per-user counter so one access source does not remove another.

When to use this skill

Trigger when ANY of these appears:

  • Plugin path/name learndash-woocommerce.
  • Product meta _related_course or _related_group.
  • User meta _learndash_woocommerce_enrolled_courses_access_counter.
  • LearnDash\WooCommerce\Settings\Status_Access.
  • Options learndash_woocommerce_enrollment_status_settings, learndash_woocommerce_silent_course_enrollment_queue, or learndash_woocommerce_disable_access_removal_on_expiration.
  • Woo hooks around order status, refund, subscription status, subscription switch, order item added/deleted, customer change, or HPOS.

Product relation model

LearnDash WooCommerce stores related LearnDash objects on the Woo product or variation:

  • _related_course is an array of LearnDash course IDs.
  • _related_group is an array of LearnDash group IDs.
  • Simple products store relations on the product ID.
  • Variable and variable-subscription parents clear parent-level relations and store relations on each variation.
  • Runtime order processing checks the variation ID first; if no variation ID is present, it checks the product ID.

When building a compatible importer/sync, preserve that shape:

update_post_meta( $product_or_variation_id, '_related_course', array_map( 'absint', $course_ids ) );
update_post_meta( $product_or_variation_id, '_related_group', array_map( 'absint', $group_ids ) );

Do not store a scalar ID and do not attach courses only to a variable parent if the product is sold through variations.

Read the full file on GitHub · 220 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 220 lines · 122 tokens per session scan A 3e915d573602

Subscribe to this mod's changes

learndash-woocommerce-access is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (26 stars, last pushed 17d ago), licensed MIT. It adds 122 tokens to every session and 2,036 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

learndash-woocommerce-access compared with skills from other repositories

learndash-woocommerce-access next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
learndash-woocommerce-accessLonsdale201/wp-agent-skillsSkill2617d agoMITA122Codex
selling-partner-knowledgeAmazon-Quick/Amazon-Quick-official-catalogSkill502d agoMIT-0A204Claude Code, Codex
math-olympiadanthropics/claude-plugins-officialSkill46kyesterdayApache-2.0A163Claude Code
Vibe Coding MasteryLeoYeAI/openclaw-master-skillsSkill2.2k6d agoMITA61Claude Code, Codex
fb-hotel-skillLeoYeAI/openclaw-master-skillsSkill2.2k6d agoMITA54Claude Code, Codex
huashu-speech-coachalchaincyf/huashu-skillsSkill2.2k4d agoMITA102Claude Code, Codex
explorer-pipelinemohitagw15856/pm-claude-skillsSkill1.5kyesterdayMITA97Claude Code