-
Notifications
You must be signed in to change notification settings - Fork 29
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
disable translation on specific option pages #26
Comments
Hi @oguilleux, thx for you feedback! :) I think you can play around this filter : https://github.com/BeAPI/acf-options-for-polylang#for-developpers Anyway, if not, don't hesitate to add one (PR) or ask me, I'll be glad. |
I'm trying to use that exactly but I can't get it to work with my function.
|
@oguilleux Is this solved for you? It sounds not ;) |
No I didn't manage to solve that question :( |
What is your need ? You have several option pages and want to disable on one of them ? |
Yes I wanted to disable one of them because I have data that is website related and not language related. |
@oguilleux There is a way to filter this, but I need your PR 😉 You can add it here in the code. In this method, you can introduce a filter on returned "option page ids", then in your project code if you filter the "option page id" by deleting it, you could finally "disable" the feature for the one you need 🤗 |
I would be glad to contribute. I added the following filter where you asked me
and in my functions.php I tried debugging with this
but nothing shows up |
Hi Maxime, thanks for creating this great plugin! I found this thread while trying to do the exact same thing (i.e. to have an option page that should NOT be translated), but aren't sure how this can be done. I read this link https://github.com/BeAPI/acf-options-for-polylang#for-just-one-acf-options-page, but adding Is this support by the plugin? Thanks for your reply! |
+1 Would really love to be able to disable language switching for a specific options page, ideally even hide the language selector. |
I managed to get this working with this code. Added some css to hide the admin bar language selector and the text in the postbox.
|
To hide the admin bar language selector you can use a filter : 'pll_admin_languages_filter'. Here is a snippet i'm using for my case :
|
Hi Maxime,
Awesome plugin ! I'd like to disable the translation functionnality on certain options page. Is it possible with the work you've done ? With a filter perhaps ? I haven't seen anything that could allow me to do so.
Thanks for your feedback,
Olivier
The text was updated successfully, but these errors were encountered: