We'll create fresh WordPress site with bSocial comments installed. You have 20 minutes to test the plugin after that site we'll be deleted.
register_post_type()
, see the section on registering custom comment typesFeatured comments were originally introduced in bSocial (plugin repo, github), but have moved here. New bSocial commenting features will be developed in this plugin.
Eventually here: https://wordpress.org/plugins/bsocial-comments/
This plugin is on Github: https://github.com/misterbisson/bsocial-comments
Master build status at Travis-CI:
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 );
`