insert($table_name,$data); return $wpdb->insert_id; } /* Function Name: updateCommand Parameters: Yes($table,$data,$where) Description: This function is used to update data in database. Created On: 27-06-2016 4:12 Created By: Tech Banker Team */ function updateCommand($table,$data,$where) { global $wpdb; $wpdb->update( $table, $data, $where, $format = null, $where_format = null); } /* Function Name: deleteCommand Parameters: Yes($table_name,$where) Description: This function is used to delete data from database. Created On: 27-06-2016 4:15 Created By: Tech Banker Team */ function deleteCommand($table_name,$where) { global $wpdb; $wpdb->delete($table_name,$where); } /* Function Name: file_reader Parameters: No Decription: This function is used to file read. Created On: 05-01-2017 16:30 Created By: Tech Banker Team */ public static function file_reader($filePath) { $reader = ""; if(file_exists($filePath)) { $reader = file_get_contents($filePath); } return $reader; } /* Function Name: clear_error_log Parameters: No Decription: This function is used to clear Error Logs. Created On: 05-01-2017 16:30 Created By: Tech Banker Team */ public static function clear_error_log($filePath) { if(file_exists($filePath)) { file_put_contents($filePath,""); } } } } } } ?>