Inicio - Documentación - POM AI - 25 Developers - Public POM AI filters

Public POM AI filters

These filters are the supported way to adapt public POM AI behavior. Return the same value type the filter receives.

Filter Value and additional arguments
pom_ai_settings Complete admin settings array.
pom_ai_language_label_from_locale Language label; also receives locale, language name, and region name.
pom_ai_dictation_max_duration Maximum recording seconds; default 180.
pom_ai_dictation_max_file_size Maximum audio bytes; default 4 MB.
pom_ai_dictation_allowed_mime_types Array of accepted audio/video-audio MIME types.
pom_ai_dictation_bits_per_second Browser recording bitrate; default 24000.
pom_ai_dictation_defaults Complete localized dictation configuration array.
pom_ai_prompt_template_context_labels Context-key to label map.
pom_ai_mcp_supported_protocol_versions Ordered supported MCP version array.
pom_ai_mcp_allowed_origins Cross-origin allowlist for MCP HTTP requests.
pom_ai_mcp_writable_options Narrow the five supported WordPress option writes; additional options are ignored.
pom_ai_mcp_writable_pom_theme_settings POM Theme setting.field allowlist; supports the server’s documented wildcard matching.

Example: lower the dictation duration

add_filter(
    'pom_ai_dictation_max_duration',
    static fn(): int => 120
);

Keep paired client/server limits coherent. For example, increasing the local dictation file limit does not make the account service accept a larger upload.

Allowlist filters do not override the server's protected-field, source-code or user-administration restrictions. The WordPress option filter can only narrow its built-in list. Theme field extensions must still match native schemas and the hard safety policy; verify preview, capability, gate and accepted-value behavior.

Do not use broad wildcards for convenience. Cross-origin entries should be exact trusted origins.

Related guides: prompt-template extension, security, and tool-module extension.