Thursday 12 August 2021

Wordpress error message on page

 if ( is_wp_error( $user_id ) ) {

    $error_string = $user_id->get_error_message();

    echo '<div id="message" class="error"><p>' . $error_string . '</p></div>';

}

No comments:

Post a Comment