Created
November 1, 2018 20:03
-
-
Save mklasen/cf038740b8245d16bbf7317dec4c1f10 to your computer and use it in GitHub Desktop.
MLP3 functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $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