@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/?post_type=lh-portfolio-doc&#038;p=150416>
  a sioc:Post ;
  dc:title "Abilities" ;
  dcterms:identifier 150416 ;
  dc:modified "2026-10-15T12:32:44Z"^^xsd:dateTime ;
  dc:created "2026-10-15T12:19:39Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-site-privacy/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-site-privacy/\">LH Site Privacy</a></li></ul><div class=\"lh_portfolio-ability-reference\"><ul class=\"lh_portfolio-ability-reference-index\"><li><a href=\"#ability-get-privacy\"><code>get-privacy</code></a> Get Site Privacy</li><li><a href=\"#ability-set-privacy\"><code>set-privacy</code></a> Set Site Privacy</li></ul><section class=\"lh_portfolio-ability-reference-ability\" id=\"ability-get-privacy\"><h2>Get Site Privacy</h2><p class=\"lh_portfolio-ability-reference-meta\"><code>lh-site-privacy/get-privacy</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 who can visit a site and what its privacy can be changed to. It gives the privacy level (machine key, stored <code>blog_public</code> value, label and description), whether it is private, whether a site password is set, whether the members level is supported, and the levels the site can be set to. Requires <code>manage_options</code> on the site. 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>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-privacy\"><h2>Set Site Privacy</h2><p class=\"lh_portfolio-ability-reference-meta\"><code>lh-site-privacy/set-privacy</code> <span class=\"lh_portfolio-ability-reference-annotation lh_portfolio-ability-reference-annotation-idempotent\">Idempotent</span></p><p>Changes who can visit a site, takes effect at once, and is reversible by calling it again. level is one of public, hidden-from-search, logged-in (anyone logged in to the network), site-users (users with a role on the site), administrators, password (anyone with the site password, plus site users) or members (true members, only where a membership plugin answers who is a member). password sets a new site password, which signs out everyone who entered the old one; it is required when choosing the password level if none is set yet. Pass level, password or both. Everything is checked before anything is saved. The members level can only be set from a connection to the site itself. Returns the level before and after and the site state. Requires <code>manage_options</code> on the site. 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>level</code></td><td>string</td><td>No</td><td></td><td>The new privacy level. One of: <code>public</code>, <code>hidden-from-search</code>, <code>logged-in</code>, <code>site-users</code>, <code>administrators</code>, <code>password</code>, <code>members</code>.</td></tr><tr><td><code>password</code></td><td>string</td><td>No</td><td></td><td>A new site password for the password level. Stored hashed.</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 Site Privacyget-privacy Get Site Privacyset-privacy Set Site PrivacyGet Site Privacylh-site-privacy/get-privacy Read-only IdempotentReturns who can visit a site and what its privacy can be changed to. It gives the privacy level (machine key, stored blog_public value, label and description), whether it is private, whether a site password is set, whether the members level is supported, and the levels the site can be set to. Requires manage_options on the site. Pass site_id to act on another site you belong to.ParameterTypeRequiredDefaultDescriptionsite_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 Site Privacylh-site-privacy/set-privacy IdempotentChanges who can visit a site, takes effect at once, and is reversible by calling it again. level is one of public, hidden-from-search, logged-in (anyone logged in to the network), site-users (users with a role on the site), administrators, password (anyone with the site password, plus site users) or members (true members, only where a membership plugin answers who is a member). password sets a new site password, which signs out everyone who entered the old one; it is required when choosing the password level if none is set yet. Pass level, password or both. Everything is checked before anything is saved. The members level can only be set from a connection to the site itself. Returns the level before and after and the site state. Requires manage_options on the site. Pass site_id to act on another site you belong to.ParameterTypeRequiredDefaultDescriptionlevelstringNoThe new privacy level. One of: public, hidden-from-search, logged-in, site-users, administrators, password, members.passwordstringNoA new site password for the password level. Stored hashed.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> .
