跳到内容

Customize Comments

v0.1.0

Weston Ruter · 2017年11月27日 上架

Edit comments with live preview and bundle edits in Customizer changesets.

正在使用
10 以下
评分
暂无
累计下载
1,943
最近更新
2017年11月27日
需要 WordPress 4.9+已测试到 4.9.36PHP 5.4+

截图

Comments edited in the Customizer are previewed with selective refresh.
Comments edited in the Customizer are previewed with selective refresh.
Comment controls appear with permalinks to their parent posts; a load more button dynamically loads new comments from the REST API.
Comment controls appear with permalinks to their parent posts; a load more button dynamically loads new comments from the REST API.

This plugin is a proof of concept for how comment editing might be added to the Customizer, with edits to comments being staged in changesets along with any other changes made in customziation session. It demonstrates scalable lazy-loading of controls/settings via the REST API. It demonstrates both dynamic settings and dynamic partials.

A new Comments section is added to the Customizer, and when this section is expanded the most recent comments are fetched from the REST API and then are added as textarea controls in the section. A button appears at the bottom of the section for loading subsequent pages of comments.

The comments are listed with the comment author and publish date along with the post it was commented on. Only the comment’s content is currently editable. When you do edit a comment that appears in the preview, then the comment will be previewed with selective refresh after a low-fidelity instant preview.

When you navigate to a post and see the comment list, clicking the “Edit Comment” link in the Customizer preview will cause the comment to be loaded into a new textarea control in the section, and the control will then be focused for editing.

This is a natural companion to the Customize Posts feature plugin.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums