Filter get_adjacent_post to follow woocommerce product category

How do I filter get_adjacent_post to follow the next category by the product category drag & drop screen? Is using get_categories correct? How do I join it into get_adjacent_post?

$post_prev = get_adjacent_post( false, '', true );
$post_next = get_adjacent_post( false, '', false );

$args = array(
    'parent'        => 0,
    'taxonomy'      => 'product_cat'
);
$categories = get_categories( $args );

Solutions Collecting From Web of "Filter get_adjacent_post to follow woocommerce product category"