Shared helper functions for the publishing editor.
Contains utilities for URL building, language handling, virtual post creation, and other common operations.
Summary
Functions
Assigns current language with enabled/known status.
Builds the URL for the post editor.
Builds language data for the publishing_language_switcher component.
Builds the URL for creating a new post.
Builds the URL for a post overview page.
Builds the URL for the post preview.
Builds the public URL for a post.
Builds a virtual post for new post creation.
Builds a virtual translation for a new language.
Gets the editor language from assigns.
Gets the preview URL for a featured image.
Formats a list of language codes for display.
Gets the URL for a file from storage.
Gets the language name for a language code.
Sanitizes a featured image ID value.
Functions
Assigns current language with enabled/known status.
Builds the URL for the post editor.
Uses UUID-based URL when available, falls back to legacy path URL.
Options: :version, :lang
Builds language data for the publishing_language_switcher component.
Builds the URL for creating a new post.
Builds the URL for a post overview page.
Uses UUID-based URL when available, falls back to legacy path URL.
Builds the URL for the post preview.
Builds the public URL for a post.
Builds a virtual post for new post creation.
Builds a virtual translation for a new language.
Gets the editor language from assigns.
Gets the preview URL for a featured image.
Formats a list of language codes for display.
Gets the URL for a file from storage.
Gets the language name for a language code.
Sanitizes a featured image ID value.