get_row( "SELECT * FROM {$wpdb->prefix}wppm_project where id = '".esc_sql($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_project_permission('delete_project',$id) || ($project->created_by==$current_user->ID && $wppm_current_user_capability == 'wppm_manager') || ($current_user->ID && $current_user->has_cap('wppm_admin')))) {exit;} ob_start(); ?>

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