digitoimistodude / air-light

💨 WordPress starter theme - designed to be minimal, ultra-lightweight (< 20 kB) and easy for all kinds of WordPress projects. 7+years/1000+hours of development and still updating daily! We prefer the original WordPress way of doing things so no strange templating languages or frameworks here.
https://airwptheme.com
MIT License
945 stars 142 forks source link

Add translation support for Custom Post Types and taxonomies #201

Closed raikasdev closed 9 months ago

raikasdev commented 1 year ago

Adds a way to use Polylang translations with taxonomies and CPTs. Not 100% sure if this is the best way to implement this, reviews appreciated. It also fixes the issue with slugs not being generated with pll_translatable (issue #186), problem also reported to Polylang to see if it's on their side.

This requires changes to air-helper: an action named "after_air_helper_init", to make sure air-helper's language wrapper is available. PR shall be a draft, until that or similar functionality is ready (add_action init running after air-helper, checking if function is available?)

Closes #178 Closes #186

height[bot] commented 1 year ago

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

raikasdev commented 1 year ago

Gotta fix the phpcs styling tomorrow

raikasdev commented 1 year ago

No clue how to fix the "spaces before asterisk". Squash merge recommended because of the ugly commits.