Open JulianCataldo13 opened 3 years ago
Currently that's not possible but for test you can disable the front end execution here: https://github.com/qtranslate/qtranslate-xt/blob/591fb09c426570d1e0fb216d76827671f264ee37/qtranslate_core.php#L124
Replace this with assert(true)
or change the if-test to execute admin only when doing_front_end is false.
If this works we may add a specific filter to handle this.
However the problem is for REST, standard calls will be executed as front requests unless they refer to wp-admin or fall under specific cases.
Thanks @herrvigg. I tried that, and in fact, disabling front-end doesn't disable API calls. wp-admin and gutenberg all relies on REST API at different degrees.
The only thing that is truly decoupled are the php front-end templates (which I do not use at all).
To be clear, disabling front-end would certainly not disable the API calls but you might lose the qTranslate features (translations) on those.
Hi there,
I'm using a JAMstack (wordpress is just a CMS, not a front-end at all). From there, I'd like to pull data in a raw form, I'm managing the splitting process myself at the frontend level (static site generation).
Basically I'd like to disable QTranslate for frontend + API but keep it for the back-office.
Is it possible ?
Thanks a lot.