Skip to content
This repository was archived by the owner on Apr 22, 2021. It is now read-only.
This repository was archived by the owner on Apr 22, 2021. It is now read-only.

Allow developers to create complex domain access rules #2

@straube

Description

@straube

Despite the possibility of setting a base URL for each domain, it may be interesting to allow developers to create complex domain access rules. The behavior should be kept the same as we have today: if the user is accessing a disallowed URL he/she will be redirected to an allowed URL.

A filter is probably the best solution do achieve this:

add_filter('multiple_domain_redirect', function ($url, $domain) {

    // URL verification logic.

    return $url;
}, 10, 2);

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions