This documentation describes unreleased changes on the main branch.

LinkKind

Enum backed by string.

use Saij\WpAppFramework\Value\LinkKind;

What a link points to: a URL entered freely or a content object of the site whose URL is resolved when the link is created from its stored value.

Cases

CaseValueDescription
Url'url'A URL entered freely; the ID is 0.
Post'post'A post of any viewable post type; the URL is its permalink.
Term'term'A term of a viewable taxonomy; the URL is its archive.
Attachment'attachment'A media file; the URL is the file.