PHP code example of wcm / wcm-lang-switch
1. Go to this page and download the library: Download wcm/wcm-lang-switch 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/ */
wcm / wcm-lang-switch example snippets
/* Plugin Name:** (WCM) Add additional languages */
add_filter( 'wcm_get_langs', 'wcm_add_languages' );
function wcm_add_languages( $languages )
{
return array_merge( $languages, array(
'de_DE', // German
'es_ES', // Spanish
'ja', // Japanese
) );
}