qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
553 stars 104 forks source link

Refactor `core` file structure and init loaders #1303

Closed herrvigg closed 1 year ago

herrvigg commented 1 year ago

The core and utils files are too large and difficult to maintain. Hooks are created while loading some PHP files which is hard to control.

Break core and utils into smaller pieces:

Refactor qtranxf_init_language() to make some init calls more explicit. Refactor core/hooks/frontend loaders to move all creations of hooks into functions. Deprecate legacy qtranxf_init (no-op).