Monday, August 22, 2022
HomeWordPress DevelopmentHow one can cover and disable URL and e mail fields from...

How one can cover and disable URL and e mail fields from feedback?


After additional analysis I discovered some related features. Have in mind it is most likely higher to separate these into completely different features, and in case your WordPress theme provides you any bother, examine this out.

// disable url discipline
operate disable_comment_url($fields) {
    if(isset($fields['url']))
        unset($fields['url']);
    return $fields;
}

add_filter('comment_form_default_fields', 'disable_comment_url');

// disable e mail discipline
operate disable_comment_email($fields) {
    if(isset($fields['email']))
        unset($fields['email']);
    return $fields;
}

add_filter('comment_form_default_fields', 'disable_comment_email');

Additionally make sure you go to Settings >> Dialogue and uncheck the “Remark writer should fill identify and e mail” choice to keep away from person feedback being rejected upon submission.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments