Skip to content

Instantly share code, notes, and snippets.

@vguerrerobosch
Last active February 16, 2022 11:37
Show Gist options
  • Save vguerrerobosch/43a18d0014cc51eff0629d62cf5c401b to your computer and use it in GitHub Desktop.
Save vguerrerobosch/43a18d0014cc51eff0629d62cf5c401b to your computer and use it in GitHub Desktop.
Allow WordPress users to translate content without setting up WPML translators

Allow WordPress users to translate content without setting up WPML translators

In recent versions of the WordPress plugin WPML you need to manually setup translators, otherwise non-admins will see the message You don't have the rights to translate from {lang} to {lang} when attempting to edit any translation. You can bypass this by adding the following filter in your functions.php

add_filter('wpml_override_is_translator', '__return_true');

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment