- This section needs development.
- 本节需要发展。 li>
- Adds featured comments selected by editors
- 添加编辑选择的精选评论 li>
- Adds ability for users to flag comments
- 增加了用户标记评论的能力 li>
- Adds ability for users to fave comments
- 增加了用户收藏评论的能力 li>
- Adds support for registering new comment types and statuses, similar to WP core’s
register_post_type()
, see the section on registering custom comment types - 增加了对注册新评论类型和状态的支持,类似于WP Core的
register_post_type() code>,请参阅有关注册自定义评论类型的部分 li>
ol>
History
历史 h4>
Featured comments were originally introduced in bSocial (plugin repo, 插件存储库,
misterbisson/bsocial" rel="nofollow">github), but have moved here.
misterbisson / bsocial“ rel =” nofollow“> github ),但已移至此处。
New bSocial commenting features will be developed in this plugin.
新的bSocial评论功能将在此插件中开发。 p>
In the WordPress.org plugin repo
在WordPress.org插件存储库中 h4>
Eventually here: https://wordpress.org/plugins/bsocial-comments/
最终在这里:https://wordpress.org/plugins/bsocial-comments/ p>
Fork me!
叉我! h4>
This plugin is on Github: https://github.com/misterbisson/bsocial-comments
此插件位于Github上:https://github.com/misterbisson/bsocial-comments p>
Build status
构建状态 h4>
Master build status at Travis-CI: 在Travis-CI上的主构建状态:
/travis-ci.org/misterbisson/bsocial-comments" rel="nofollow">
/travis-ci.org/misterbisson/bsocial-comments“ rel =” nofollow“> p>
Registering custom comment types
注册自定义评论类型 h3>
Custom comment types
自定义评论类型 p>
`php `php
code> pre>
$args = array(
$ args = array(
‘labels’ => array(
‘labels’=> array(
‘name’ => ‘Faves’,
‘名称’=>‘收藏夹’,
‘singular_name’ => ‘Fave’,
‘singular_name’=>‘Fave’,
‘edit_item’ => ‘Edit Fave’,
‘edit_item’=>‘编辑收藏’,
‘update_item’ => ‘Update Fave’,
‘update_item’=>‘更新收藏’,
‘view_item’ => ‘View Fave’,
‘view_item’=>‘View Fave’,
‘all_items’ => ‘All Faves’,
‘all_items’=>‘所有最爱’,
),
),
‘description’ => ‘Comment faves’,
‘说明’=>‘评论收藏’,
‘public’ => TRUE,
‘public’=> TRUE,
‘show_ui’ => TRUE,
‘show_ui’=>是,
‘admin_actions’ => array( ‘trash’, ‘untrash’, ‘delete’ ),
‘admin_actions’=> array(‘trash’,‘untrash’,‘delete’),
‘statuses’ => array(
‘statuses’=>数组(
‘feedback’,
“反馈”,
‘trash’,
‘垃圾’,
),
),
);
); p>
bsocial_comments()->register()->comment_type( ‘fave’, $args );
bsocial_comments()-> register()-> comment_type('fave',$ args);
`
` p>
Custom comment statuses
自定义评论状态 p>
`php `php
code> pre>
$args = array(
$ args = array(
‘label’=> ‘Feedback’,
‘label’=>‘Feedback’,
‘label_count’ => _n_noop( ‘Feedback (%s)’, ‘Feedback (%s)’ ),
‘label_count’=> _n_noop(‘反馈(%s)’,‘反馈(%s)’),
‘status_links_show’ => TRUE,
‘status_links_show’=>是,
‘include_in_all’ => FALSE,
‘include_in_all’=>否,
);
); p>
bsocial_comments()->register()->comment_status( ‘feedback’, $args );
bsocial_comments()-> register()-> comment_status('feedback',$ args);
`
` p>