Support » Fixing WordPress » Allow registered users to comment as guests

  • Hi,

    On my site I need that the comments form will work the same for guests and for registered users, meaning that anyway they will need to enter name and email.
    This is needed so registered users can comment anonymously.

    Any idea how this can be done?

Viewing 1 replies (of 1 total)
  • Well I found a solution at last, but had to modify core files:

    /wp-comments-post.php – commented: $user = wp_get_current_user();

    And I wrote a plugin that overrides pluggabble function is_user_logged_in. the $widget param is to still show user details in areas on the page that need to see he is logined:

    if ( !function_exists(‘is_user_logged_in’) ) :
    function is_user_logged_in($widget = 0) {
    $user = wp_get_current_user();

    if ( empty( $user->ID ) || (is_single() && $widget == 0 ))
    return false;
    else return true;

Viewing 1 replies (of 1 total)
  • The topic ‘Allow registered users to comment as guests’ is closed to new replies.