Loveshack 1.2.28
New in Loveshack v1.2.28
- Stream post type API. A plugin or child theme registers a post type for the stream from the loveshack_register_stream_post_types action, naming its stream and single templates and opting into Markdown text, reactions, comments, an author line, ActivityPub support, and feed inclusion. Registered types join the stream query and the filter pills, render through their own templates, and reach RSS feeds, personal feeds, and digest emails. The home, archive, and search streams now share one renderer, and a loveshack_stream_before_items action lets plugins add sticky items above the first post.
- Releases are full stream items. Everything about Update API releases has moved out of the theme and into the plugin, which now adds releases through the new API. A release shows the author who published it next to the Release and Latest labels, accepts reactions and comments on its release page, and goes out in RSS, personal feeds, and digest emails like every other stream item. The release templates and styles ship with Update API v1.1.9 or later, so update the plugin together with the theme.
- Plugin post types in settings. Loveshack > Custom Post Types now lists each post type added through the API, named after the plugin or child theme that registered it, with a checkbox that takes it out of the stream and a URL slug field next to the status, image, and video slugs. A changed slug is applied when the post type registers and the rewrite rules are rebuilt on the next request, so no permalinks save is needed.
- Blog posts checkbox. The Enabled post types list gains a Blog Posts (post) checkbox at the top. Unchecking it removes regular blog posts from the stream, the filter pills, feeds, and digest emails while the posts stay reachable at their own URLs and archives. When every checkbox is off, the stream keeps falling back to blog posts.