Hello,
I am referring to the mu-plugins
directory. This would be the MUST-USE plugins. This currently is not supported as there is no solid way to scan the mu-plugins
due to WordPress not having any clear structure for it.
I was able to add mu-plugin
support and posted that on the github repo that just links here: https://github.com/marcinkazmierski/Polylang—theme-translation/issues/7 (note, link messes up when posting here, there should be 3 -
between PolyLang and theme.
My solution was to add a Directory
to the mu-plugins
file so that it knows which directory to scan inside the mu-plugins
directory. Another option would be to scan all directories inside the mu-plugins
directory but I personally didn’t like that approach, although it wouldn’t require the Directory
parameter in the mu proxy loader file.
The issue with the mu-plugins
was that it cannot scan the directories as there is no scanner for it. TTfP also does not do anything with plugins placed there. My patch above adds scanning to TTfP but I still need to play more with PolyLang to ensure this works as expected. I will update this later once I get to complete that task. I can confirm that as far as TTfP goes, this is working as expected. I can see and manage my mu-plugins
translations now. The issue I have is that in WP-Admin, I am seeing the incorrect language for metaboxes in the MU Plugins but I believe this is a PolyLang issue and not relates to TTfP. I will update this later once I confirm the cause.
I currently run a large site with WPML but performance is horrible so I am switching to PolyLang. My patch got this working but I had to go back to WPML for an update that needed to be added to PROD. I will be working back on PolyLang this week and next so I should be able to follow up after that.
I still am unsure of how or if PolyLang integrates into mu-plugins
but this is a requirement for me. I will be pushing PR to add this functionality if it doesn’t exist yet.
I use the mu-plugins
for internal plugins that are required for our sites. These are plugins I or my team wrote and we’ve been using mu-plugins
for over 10 years this way. I am aware that most WordPress users may never need to use mu-plugins
(or use them improperly) so this is why I don’t mind assisting with the development of this functionality.
Either way, my patch I posted above will add MU Plugin support to TTfP. I just need to look into why I am experiencing issues with the translations in PolyLang but I don’t believe this has anything to do with TTfP.
Thanks for your replies.
-
This reply was modified 2 years, 7 months ago by
SoN9ne.
-
This reply was modified 2 years, 7 months ago by
SoN9ne.
-
This reply was modified 2 years, 7 months ago by
SoN9ne.