learndash/update-integrity-settings changes LearnDash Integrity settings.
Only the keys you supply are written; everything else in the option is preserved.
At a glance
| Ability | learndash/update-integrity-settings |
| Toolset | LearnDash — toolset/learndash |
| Group | LearnDash › Integrations & Add-ons |
| Requires | AcrossAI Pro, plus LearnDash LMS active on the site |
| Capability | manage_options |
| Safety | Writes data |
| Repeatable | Idempotent — running it twice leaves the same result |
| Ships in | AcrossAI Pro 0.9.16 and later |
How it works
That partial write is the safety property here. A whole-option write would reset every protection not mentioned, which on a settings blob with no documented key list is very easy to do by accident.
The add-on does not document a fixed key list, and this ability deliberately does not invent one — so read learndash/get-integrity-settings first and work from what is actually there.
That is the same approach as the BuddyBoss group settings: where a plugin has no stable documented schema, the read is the schema.
The settings take effect on the front end immediately. Turning off copy protection on a site that had it is visible to learners the moment they reload.
Idempotent.
Input
| Name | Type | Required | What it is |
|---|---|---|---|
settings | object | Yes | The keys to write. Everything else is preserved. |
What comes back
| Name | Type | What it is |
|---|---|---|
settings | object | The settings after the write. |
success | boolean | Whether the call completed. |
message | string | A one-line summary of what happened, suitable for showing a human. |
error_code | string | Present 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:
Turn off the print restriction.
It resolves to one call:
{
"ability": "learndash/update-integrity-settings",
"parameters": {
"settings": { "disable_print": false }
}
}Worth knowing
- Partial write — unmentioned protections are preserved.
- The add-on documents no fixed key list, so the read is the schema.
- Changes are visible to learners on the next page load.
- Idempotent.
Related abilities
- LearnDash Get Integrity Settings — read the keys first
Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager
Browse the rest: Every ability, by category