user_email == get_post_meta( get_the_ID(), 'order_email', true ) || current_user_can('edit_others_posts')) $msg = $content; else $msg = 'Your profile email must match your order email'; } else { $msg = 'Please Login to see the order'; } return $msg; }