PHP code example of mindkomm / theme-lib-plugin-multilingualpress
1. Go to this page and download the library: Download mindkomm/theme-lib-plugin-multilingualpress library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mindkomm / theme-lib-plugin-multilingualpress example snippets
$multilingualpress = new Theme\Plugin\Multilingual_Press\Multilingual_Press();
$multilingualpress->init();
add_filter( 'timber/context', function( $context ) {
$context['language_switcher'] = Timber::get_widgets( 'language-switcher' );
return $context;
} );