Tag Item Can Comment
This template tag checks if user can leave comment on this post or display error.
== Example ==
$Item->can_comment( $before_error = '<p><em>', $after_error = '</em></p>', $non_published_msg = '#', $closed_msg = '#' );
// Result: Comments are closed for this post.
$Item->can_comment( '<p><em>', '</em></p>', 'Comments are closed for this post, because it is not published yet.', '#' );
// Result: Comments are closed for this post, because it is not published yet.
== Parameters ==
* Name: before_error
* Default: ‘<p><em>’
* Usage: String to display before any error message; NULL to not display anything, but just return boolean.
* Name: after_error
* Default: ‘</em></p>’
* Usage: String string to display after any error message.
* Name: non_published_msg
* Default: ‘#’
* Usage: String error message for non published posts, ‘#’ for default.
* Name: closed_msg
* Default: ‘#’
* Usage: String error message for closed comments posts, ‘#’ for default.
== Return value ==
This function return true, if user can leave comment on this post.
If user can’t leave comment then this function return false and displays error.