Dynamic view filter value
I've figured out the problem after lots of guessing. You'll need to use a contextual filter and use the hook_views_pre_view hook in a custom module to alter the $args variable.

function MODULENAME_views_pre_view($view, $display_id, &amp;$args) {
    if ($view-&gt;id() === 'view_machine_name') {
        $args[0] = 'your value';
    }
}