Skip to content

Instantly share code, notes, and snippets.

@mklasen
Created November 1, 2018 20:03
Show Gist options
  • Save mklasen/cf038740b8245d16bbf7317dec4c1f10 to your computer and use it in GitHub Desktop.
Save mklasen/cf038740b8245d16bbf7317dec4c1f10 to your computer and use it in GitHub Desktop.
MLP3 functions
$args = \Inpsyde\MultilingualPress\Framework\Api\TranslationSearchArgs::forContext(new \Inpsyde\MultilingualPress\Framework\WordpressContext())
->forSiteId(get_current_blog_id())
->includeBase();
$translations = \Inpsyde\MultilingualPress\resolve(
\Inpsyde\MultilingualPress\Framework\Api\Translations::class
)->searchTranslations($args);
var_dump($translations);
return $content;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment