Skip to content

Internationalization of labels/options with WPML #851

Description

@tw2113

https://wpml.org/wpml-hook/wpml_register_single_string/

Requires: "WPML String Translation" module

Example:

$value = 'Movie';
do_action( 'wpml_register_single_string', 'my-text-domain', 'Singular Label', $value );

Can we fetch our registered settings, iterate over and push that through to this hook, and have it work, without having to also drop this action throughout the rest of our codebase? Would allow for a compatibility file that we load as needed.

Or, do we just need to run this upon save functions? Is there an unregister equivalent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    i18nInternationalization

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions