How to send user to wordpress dashboard?

Solution:

Try this,

<?php
  // check if current user is the post author
  global $current_user;
  get_currentuserinfo();
  if (is_user_logged_in() && $current_user->ID == $post->post_author)  {
     wp_redirect( admin_url( 'the url you need to redirect' ) );
     exit;
  }
?>