get_task($id); $project_data = $wppmfunction->get_project($proj_id); $wppm_current_user_capability = get_user_meta( $current_user->ID, 'wppm_capability', true ); if(!(($current_user->ID && $current_user->has_cap('manage_options')) || ($wppmfunction->has_permission('delete_task',$id)) || $wppm_current_user_capability == 'wppm_admin'|| $project_data['created_by']==$current_user->ID )){ exit; } ob_start(); ?>

$body, 'footer' => $footer ); echo json_encode($response);