@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-post-locking/>
  a sioc:Post ;
  dc:title "Abilities" ;
  dcterms:identifier 150258 ;
  dc:modified "2026-10-14T15:01:09Z"^^xsd:dateTime ;
  dc:created "2026-10-14T15:01:09Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-post-locking/abilities/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-post-locking/\">LH Post Locking</a></li></ul><div class=\"lh_portfolio-ability-reference\"><ul class=\"lh_portfolio-ability-reference-index\"><li><a href=\"#ability-get-lock\"><code>get-lock</code></a> Get Lock</li><li><a href=\"#ability-list-locked\"><code>list-locked</code></a> List Locked Posts</li><li><a href=\"#ability-set-lock\"><code>set-lock</code></a> Set Lock</li></ul><section class=\"lh_portfolio-ability-reference-ability\" id=\"ability-get-lock\"><h2>Get Lock</h2><p class=\"lh_portfolio-ability-reference-meta\"><code>lh-post-locking/get-lock</code> <span class=\"lh_portfolio-ability-reference-annotation lh_portfolio-ability-reference-annotation-readonly\">Read-only</span> <span class=\"lh_portfolio-ability-reference-annotation lh_portfolio-ability-reference-annotation-idempotent\">Idempotent</span></p><p>Returns the lock state of one post, and whether the calling account can edit it and can lock it. It gives whether the post type is lockable, whether the post is locked, and who locked it and when (GMT). Read-only. Requires <code>read_post</code> on the post. Pass <code>site_id</code> to act on another site you belong to.</p><figure class=\"wp-block-table lh_portfolio-ability-reference-params\"><table><thead><tr><th>Parameter</th><th>Type</th><th>Required</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>post_id</code></td><td>integer</td><td>Yes</td><td></td><td>ID of the post on the current site.</td></tr><tr><td><code>site_id</code></td><td>integer</td><td>No</td><td></td><td>Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.</td></tr></tbody></table></figure></section><section class=\"lh_portfolio-ability-reference-ability\" id=\"ability-list-locked\"><h2>List Locked Posts</h2><p class=\"lh_portfolio-ability-reference-meta\"><code>lh-post-locking/list-locked</code> <span class=\"lh_portfolio-ability-reference-annotation lh_portfolio-ability-reference-annotation-readonly\">Read-only</span> <span class=\"lh_portfolio-ability-reference-annotation lh_portfolio-ability-reference-annotation-idempotent\">Idempotent</span></p><p>Lists the locked posts on the current site, most recently modified first, with paging. It covers every status except auto-draft, optionally only one lockable post type. Each item gives the post ID, type, status, title, who locked it and when (GMT). Read-only. Requires <code>manage_options</code>. Pass <code>site_id</code> to act on another site you belong to.</p><figure class=\"wp-block-table lh_portfolio-ability-reference-params\"><table><thead><tr><th>Parameter</th><th>Type</th><th>Required</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>post_type</code></td><td>string</td><td>No</td><td><code>&quot;&quot;</code></td><td>Only this post type. Must be lockable. Default: every lockable type.</td></tr><tr><td><code>page</code></td><td>integer</td><td>No</td><td><code>1</code></td><td>Page of results, from 1. Default 1.</td></tr><tr><td><code>per_page</code></td><td>integer</td><td>No</td><td><code>20</code></td><td>Posts per page, 1 to 100. Default 20.</td></tr><tr><td><code>site_id</code></td><td>integer</td><td>No</td><td></td><td>Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.</td></tr></tbody></table></figure></section><section class=\"lh_portfolio-ability-reference-ability\" id=\"ability-set-lock\"><h2>Set Lock</h2><p class=\"lh_portfolio-ability-reference-meta\"><code>lh-post-locking/set-lock</code> <span class=\"lh_portfolio-ability-reference-annotation lh_portfolio-ability-reference-annotation-idempotent\">Idempotent</span></p><p>Locks or unlocks one post on the current site. A locked post cannot be edited, trashed or deleted by any account without the lock capability, by any route that goes through the WordPress APIs. Uses the same storage as the editor checkbox, so the <code>post_locked</code> and <code>post_unlocked</code> actions fire and the change is attributed to the calling account. Refuses post types that cannot be locked. Setting the state a post already has changes nothing and reports changed false. Requires <code>manage_options</code>. Pass <code>site_id</code> to act on another site you belong to.</p><figure class=\"wp-block-table lh_portfolio-ability-reference-params\"><table><thead><tr><th>Parameter</th><th>Type</th><th>Required</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td><code>post_id</code></td><td>integer</td><td>Yes</td><td></td><td>ID of the post on the current site.</td></tr><tr><td><code>locked</code></td><td>boolean</td><td>Yes</td><td></td><td>true to lock, false to unlock.</td></tr><tr><td><code>task_id</code></td><td>integer</td><td>No</td><td></td><td>Optional. The lh-tasks task this call is working on. Pass with <code>claim_token</code>: the call is refused unless you hold that claim, and a successful call renews it.</td></tr><tr><td><code>claim_token</code></td><td>string</td><td>No</td><td></td><td>Optional. The <code>claim_token</code> from claim-next-task for <code>task_id</code>. Required when <code>task_id</code> is given.</td></tr><tr><td><code>site_id</code></td><td>integer</td><td>No</td><td></td><td>Optional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.</td></tr></tbody></table></figure></section></div>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH Post Lockingget-lock Get Locklist-locked List Locked Postsset-lock Set LockGet Locklh-post-locking/get-lock Read-only IdempotentReturns the lock state of one post, and whether the calling account can edit it and can lock it. It gives whether the post type is lockable, whether the post is locked, and who locked it and when (GMT). Read-only. Requires read_post on the post. Pass site_id to act on another site you belong to.ParameterTypeRequiredDefaultDescriptionpost_idintegerYesID of the post on the current site.site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.List Locked Postslh-post-locking/list-locked Read-only IdempotentLists the locked posts on the current site, most recently modified first, with paging. It covers every status except auto-draft, optionally only one lockable post type. Each item gives the post ID, type, status, title, who locked it and when (GMT). Read-only. Requires manage_options. Pass site_id to act on another site you belong to.ParameterTypeRequiredDefaultDescriptionpost_typestringNo&quot;&quot;Only this post type. Must be lockable. Default: every lockable type.pageintegerNo1Page of results, from 1. Default 1.per_pageintegerNo20Posts per page, 1 to 100. Default 20.site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site.Set Locklh-post-locking/set-lock IdempotentLocks or unlocks one post on the current site. A locked post cannot be edited, trashed or deleted by any account without the lock capability, by any route that goes through the WordPress APIs. Uses the same storage as the editor checkbox, so the post_locked and post_unlocked actions fire and the change is attributed to the calling account. Refuses post types that cannot be locked. Setting the state a post already has changes nothing and reports changed false. Requires manage_options. Pass site_id to act on another site you belong to.ParameterTypeRequiredDefaultDescriptionpost_idintegerYesID of the post on the current site.lockedbooleanYestrue to lock, false to unlock.task_idintegerNoOptional. The lh-tasks task this call is working on. Pass with claim_token: the call is refused unless you hold that claim, and a successful call renews it.claim_tokenstringNoOptional. The claim_token from claim-next-task for task_id. Required when task_id is given.site_idintegerNoOptional. ID of another site in the network to act on; list-my-sites gives the sites you belong to. Permissions are checked on that site. Omit for this site." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
