Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Allow WordPress default front-end selectively #11

Open
Shelob9 opened this issue Jan 11, 2020 · 3 comments
Open

[Feature] Allow WordPress default front-end selectively #11

Shelob9 opened this issue Jan 11, 2020 · 3 comments

Comments

@Shelob9
Copy link
Owner

Shelob9 commented Jan 11, 2020

Problem

This plugin is "all in". There is no way to say all posts of post type X can use a WordPress theme, but everything else redirect to front-end, or to allow a certain page/ post to be allowed.

If a plugin adds a custom rewrite rule, it is probably blocked, which may be bad.

Solution

Add a filter that is the final decider of if request is blocked or not.

Add a UI that allows for a adding paths to allow. Should be able to use * paths:

  • /blog/hi-roy -> Allow https://site.com/blog/hi-roy
  • /products/shirts/* -> Matches anything starting with https://site.com/products/shirts/

Mockup - I made this by using the inspector to mock up using the page for the simple 301 redirects plugin on calderaforms.com

headless-mode

@bamadesigner
Copy link
Contributor

Hey! We're now using this plugin on wpcampus.org. We definitely need a filter to help determine who gets access to the front end so will be adding a PR for the filter.

https://github.com/Shelob9/headless-mode/blob/master/headless-mode.php#L84

@Benunc
Copy link
Collaborator

Benunc commented Mar 27, 2023

@bamadesigner do you still have this need? I vaguely remember a PR that was merged that might have fixed this, but I am not confident, nor have I poked around much.

@bamadesigner
Copy link
Contributor

@Benunc Yes, I believe this line is the filter that was requested: https://github.com/Shelob9/headless-mode/blob/master/headless-mode.php#L96

This was the PR: #13

I believe you can consider this closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants