-
Notifications
You must be signed in to change notification settings - Fork 134
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] Add hook to alter admin url #1882
Comments
While @theodesp 's PR, which would solve this in a JavaScript filter for wp-admin in Faust users is excellent, I've asked us both to step back on that for the moment. The issue is that there are more paths than just The approach we're looking at instead is to expose this via WP GraphQL and I've opened wp-graphql/wp-graphql#3145 to discuss that. I believe this would best help you (so you don't have to ask us for another filter if you have to access something else in the WordPress filesystem) as well as all Faust users and beyond. |
On review, it seems the issue comes from the fact that
As with #1872 (comment), I believe the ideal pattern is inheritable constants, and shouldn't require an extra GraphQL request to resolve. (Fun fact #1360 was actually designed to workaround this exact issue, since @ChrisWiegman please confirm/correct my assessment 🙏 |
@justlevine that is absolutely right, and it took me a while to digest what is going on with the urls in FaustWP plugin and where is the issue coming from, only after realising that |
@theodesp is there any progress on this one? Many thanks! |
Currently in
@faustwp/core: 3.0.1
package, there is a way to hook into wpUrl method. But there is no way to hook into theadminUrl
, and as far as there is a way to overrideSiteName
link in the custom toolbar with snippet like this:there is no way to override rest of the toolbar items to render proper admin urls.
Would be great if we could do something like:
There is a similar request to this one, but it is related to WordPress
faustwp
plugin #1872 (comment)The text was updated successfully, but these errors were encountered: