Featured, faved, and flaged comments.
Author: | Casey Bisson (profile at wordpress.org) |
WordPress version required: | 4.0 |
WordPress version tested: | 4.0.38 |
Plugin version: | 1.0 |
Added to WordPress repository: | 04-11-2014 |
Last updated: | 04-11-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://github.com/misterbisson/bsocial-comme... |
Total downloads: | 926 |
![]() Click to start download |
- This section needs development.
- Adds featured comments selected by editors
- Adds ability for users to flag comments
- Adds ability for users to fave comments
- 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
History
Featured comments were originally introduced in bSocial (plugin repo, github), but have moved here. New bSocial commenting features will be developed in this plugin.
In the WordPress.org plugin repo
Eventually here: https://wordpress.org/plugins/bsocial-comments/
Fork me!
This plugin is on Github: https://github.com/misterbisson/bsocial-comments
Build status
Master build status at Travis-CI:
Registering custom comment types
Custom comment types
`php
$args = array(
‘labels’ => array(
‘name’ => ‘Faves’,
‘singular_name’ => ‘Fave’,
‘edit_item’ => ‘Edit Fave’,
‘update_item’ => ‘Update Fave’,
‘view_item’ => ‘View Fave’,
‘all_items’ => ‘All Faves’,
),
‘description’ => ‘Comment faves’,
‘public’ => TRUE,
‘show_ui’ => TRUE,
‘admin_actions’ => array( ‘trash’, ‘untrash’, ‘delete’ ),
‘statuses’ => array(
‘feedback’,
‘trash’,
),
);
bsocial_comments()->register()->comment_type( ‘fave’, $args );
`
Custom comment statuses
`php
$args = array(
‘label’ => ‘Feedback’,
‘label_count’ => _n_noop( ‘Feedback (%s)’, ‘Feedback (%s)’ ),
‘status_links_show’ => TRUE,
‘include_in_all’ => FALSE,
);
bsocial_comments()->register()->comment_status( ‘feedback’, $args );
`