php newb wp-comments-post.php (1 post)

  1. strasse
    Posted 3 years ago #


    I want to insert a html url into the error warnings if you misfill your email or leave commentfield blank

    so i had like this :

    if ( get_option('require_name_email') && !$user->exists() ) {
    	if ( 6 > strlen($comment_author_email) || '' == $comment_author ) 
    	wp_die( __('<strong>ERROR</strong>: please fill the required fields (name, email).')  );
    		echo '<a href="https://twitter.com/angela_bradley">My Twitter</a>';
    	elseif ( !is_email($comment_author_email))
    		wp_die( __('<strong>ERROR</strong>: please enter a valid email address. ') );

    where echo 'My Twitter'; is my attempt

    what do I do wrong?

Topic Closed

This topic has been closed to new replies.

About this Topic