/**
  * Action Row Links.
  * Modifies the action links into the admin page.
  *
  * @access public
  * @return $actions array contains all action links.
  */
 public function wprm_action_row($actions, $post)
 {
     if ($post->post_type == 'wprm_reservations') {
         unset($actions['inline hide-if-no-js']);
         unset($actions['view']);
         //check capabilites
         $post_type_object = get_post_type_object($post->post_type);
         if (!$post_type_object) {
             return;
         }
         if (!current_user_can('publish_wprm_reservations', $post->ID)) {
             return;
         }
         // Approve Reservation
         $actions['approve_reservation'] = '<a class="submitapprove" href="' . wprm_get_reservation_approve_link($post->ID) . '">' . __('Approve', 'wprm') . '</a>';
         // Reject Reservation
         $actions['reject_reservation'] = '<a class="submitdelete" href="' . wprm_get_reservation_reject_link($post->ID) . '">' . __('Reject', 'wprm') . '</a>';
     }
     return $actions;
 }
/**
 * Email template tag: reject_booking
 * Time of the booking request.
 * 
 * @since  1.0.0
 * @param int $booking_id
 * @return string reject_booking
 */
function wprm_email_tag_reject_booking($booking_id)
{
    $url = '<a href="' . wprm_get_reservation_reject_link($booking_id) . '">' . __('Reject Booking', 'wprm') . '</a>';
    return $url;
}