Use WPML's runtime language hook API from plugin/theme code — read the current/active/default language, resolve the translated ID of a post…
A skill in “Writing, content and documents”. Ready commands for Claude Code, Codex, OpenCode and 32 more agents.
Full description
Use WPML's runtime language hook API from plugin/theme code — read the current/active/default language, resolve the translated ID of a post/term, switch language around a query, and build language-aware URLs. Covers apply_filters('wpml_current_language','') and the ICL_LANGUAGE_CODE constant, apply_filters('wpml_active_languages', null, $args), apply_filters('wpml_default_language', null), apply_filters('wpml_object_id', $id, $type, $return_original_if_missing, $lang), do_action('wpml_switch_language', $lang) with restore via null, apply_filters('wpml_permalink', $url, $lang), apply_filters('wpml_home_url',''), apply_filters('wpml_post_language_details', null, $post_id), and apply_filters('wpml_element_language_details', null, $args). All are registered in SitePress::api_hooks(); the legacy icl_* functions (icl_object_id, icl_get_current_language) are deprecated since 3.2. Use when code must behave per-language, show the right translation, run a query in a specific language, or link across translations.
Skill
Writing, content and documents
35 agents
26 stars
MIT
This entry comes from the GitSkills open dataset (CC-BY-4.0). ANG did not run or audit this skill; check the source before installing.
AiderNo SKILL.md support documented for Aider.Source
PlandexNo SKILL.md support documented for Plandex.Source
CodeGPTNo SKILL.md support documented for CodeGPT.Source
SWE-agentNo SKILL.md support documented for SWE-agent.Source
mini-SWE-agentNo SKILL.md support documented for mini-SWE-agent.Source
JulesNo SKILL.md support documented for Jules.Source
Open SWENo SKILL.md support documented for Open SWE.Source
GitLab DuoNo SKILL.md support documented for GitLab Duo.Source
Support comes from each agent’s official docs on SKILL.md and MCP; ANG has not run this entry on every agent.
In plain words
No tech background needed.
What is it?
A skill is a pack of instructions you load into your agent (like Claude Code or Codex). It is like installing an app on your phone: install it once and the agent knows how to do that job.
What is it for?
Used for “Writing, content and documents” work. In the publisher’s words: Use WPML's runtime language hook API from plugin/theme code — read the current/active/default language, resolve the translated ID of a post/term, switch langua…
Example request
“Make this text flow better.”
Agents
Ready commands for Claude Code, Codex, OpenCode and 32 more agents.
Can I trust it?
26 GitHub stars · MIT. Check the source before installing.
Usage
Last 30 days, on the site and in agents.
0on shelves
0views
0commands copied
0site downloads
0installed from the app
0installed by the agent
0active users
A field score needs at least 20 users and 50 tasks from the ANG app; now 0 users, 0 tasks. Until then the power score is estimated from listing data.