How to remove rating page email and name fields

This topic contains 3 replies, has 3 voices, and was last updated by  Guust 9 years, 4 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #63850

    Kay Yeung
    Free User
    Post count: 7

    How to remove rating page email and name required?

    I want to remove input email and name in rating page.

    But it is input required. How can i do it?

    Please help. Thank you for all.

    #63857

    Kay Yeung
    Free User
    Post count: 7

    I am solved.

    it should be discard the following code:

    if ( get_option(‘require_name_email’) && !$user->exists() ) {
    if ( 6 > strlen( $comment_author_email ) || ” == $comment_author ) {
    wp_die( __( ‘ERROR: please fill the required fields (name, email).’ ), 200 );
    } elseif ( ! is_email( $comment_author_email ) ) {
    wp_die( __( ‘ERROR: please enter a valid email address.’ ), 200 );
    }
    }

    #63916

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    removing wordpress core code isn’t a good idea, just FYI.

    Next update you will have to remove it again, and then again…

    Thanks

    #63965

    Guust
    Moderator
    Post count: 29970

    Or you could just change the setting at WP Settings > Discussion > Comment author must fill out name and email > No

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount