custom-post-type-ui
custom-post-type-ui copied to clipboard
Internationalization of labels/options with WPML
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?
Could we potentially do something here for WPML in a similar way as what we have in 503-polylang-support ?