Skip to content
wiki.fftac.org

Hooks

**Site relevance:** Antichrist.net

**Memory type:** plugin source memory

**Source path:** Antichrist.net/wp-content/plugins/uaix-locale-router/docs/HOOKS.md

**Size:** 1.8 KB

Summary

UAIX hooks use the uaixlr prefix. Deprecated NS12 aliases are kept where practical.

Source Headings

  • Hooks
  • Filters
  • Deprecated Runtime Surface

Source Preview

This source file is short enough to preview directly on its source-memory page.

# Hooks

UAIX hooks use the `uaixlr_` prefix. Deprecated NS12 aliases are kept where practical.

## Filters

- `uaixlr_translation_scan_roots`
  - Filters directories scanned when building translator-facing dictionaries.
  - Deprecated alias: `ns12lr_translation_scan_roots`.

- `uaixlr_translation_scan_max_files`
  - Caps PHP files scanned for dictionary source extraction.

- `uaixlr_translation_scan_max_file_bytes`
  - Caps file size scanned for dictionary source extraction.

- `uaixlr_link_review_max_files`
  - Caps files scanned during Status page link review.

- `uaixlr_link_review_max_file_bytes`
  - Caps link-review file size.

- `uaixlr_content_link_rewrite_max_bytes`
  - Caps content HTML size eligible for automatic link localization.

- `uaixlr_render_meta_description`
  - Allows themes or SEO plugins to suppress the router's `<meta name="description">` output while retaining the rest of the multilingual metadata.

- `uaixlr_seo_title`
  - Filters the localized document title candidate. Receives the current request context and fallback title.

- `uaixlr_seo_description`
  - Filters the localized meta/social/schema description candidate. Receives the current request context and fallback description.

- `uaixlr_seo_image`
  - Filters the social/schema image URL candidate.

- `uaixlr_seo_metadata`
  - Filters the full localized SEO metadata payload before it is rendered.

- `uaixlr_seo_schema`
  - Filters the JSON-LD graph containing WebSite and localized WebPage/Article records.

## Deprecated Runtime Surface

- `ns12lr_t()` and `ns12lr_t_format()` are deprecated helper aliases.
- `[ns12_locale_switcher]` is a deprecated shortcode alias.
- `ns12_locale` remains as a deprecated query-var alias for compatibility.

New code should use `uaixlr_t()`, `uaixlr_t_format()`, `[uaix_locale_switcher]`, and UAIX-prefixed hooks.