How to remove views view filter programmatically in Drupal.
Source code viewer
function HOOK_views_pre_view(&$view) { // don't forget to replace the HOOK if($view->name == 'view_name') { // conditions unset($view->display_handler->default_display->options['filters']['filter_name']); // replace filter_name with the name of your filter, print your array for filter names } }Programming Language: PHP