Make the l10n plugins enabled by default
Upon the suggestion, I’ve just re-written the three features (Chinese video embedding, Dashboard style modification, and Asian character count fix) in
/wp-content/languages/zh_CN.php into three separate plugins. I want them to be enabled by default after installation. To make zh_CN.php more efficient, instead of checking plugin state each time zh_CN.php is required in
wp-settings.php, I want to request for an action hook that will run after initial WordPress installation and each core update.
That way I can hook to the “install finished” action and enable the l10n plugins. The reason why I want an “core updated” hook is that I want to make new l10n plugins we publish in the future be enabled automatically, as well. In zh_CN.php, I will of course use
get_option() to check if the plugins were disabled by the user manually before so it won’t be re-enabled automatically again.
If there’s a better way or guideline for such situation, please let me know. Thank you.