Set SEO defaults
fabrement-set-seo-defaultsSet Yoast DEFAULTS for exactly one scope — a postType (title/metaDesc templates, noindex, schema types; its ARCHIVE is set-seo {archive}), a taxonomy, or site:true (separator, website name, the knowledge graph: companyOrPerson/companyName/companyLogoId, facebookUrl/twitterUsername/socialProfiles, defaultOgImageId, home templates). Templates use Yoast variables (%%title%%, %%sitename%%, %%sep%%, %%fab_%% — a Fabrement field as a reader sees it, %%cf_%% — another plugin's raw field…); an unknown or empty variable is REMOVED from the output. Refused when Yoast is not active. Rules: get-skill-doc {id:"seo-contract"} — read it before the first call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | ||
| noindex | No | ||
| postType | No | ||
| taxonomy | No | ||
| separator | No | ||
| companyName | No | ||
| facebookUrl | No | site: the Facebook page of the organisation (Organization sameAs, article:publisher). | |
| socialTitle | No | ||
| websiteName | No | ||
| personUserId | No | ||
| alternateName | No | ||
| companyLogoId | No | ||
| titleTemplate | No | ||
| schemaPageType | No | ||
| socialProfiles | No | site: every OTHER profile URL of the organisation (Instagram, LinkedIn, YouTube…) — the sameAs of the Organization node. Replaces the list; null clears it. | |
| companyOrPerson | No | ||
| twitterUsername | No | site: the X/Twitter handle ("fabrement", "@fabrement" or its profile URL). | |
| defaultOgImageId | No | site: the share image for pages with no image of their own (upload-media id). | |
| metaDescTemplate | No | ||
| homeTitleTemplate | No | ||
| schemaArticleType | No | ||
| socialDescription | No | ||
| breadcrumbsEnabled | No | ||
| homeMetaDescTemplate | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | ||
| scope | Yes | ||
| written | Yes | ||
| defaults | No | ||
| warnings | No |