PHP code example of aucor / polylang-smart-language-select-disabler
1. Go to this page and download the library: Download aucor/polylang-smart-language-select-disabler 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/ */
aucor / polylang-smart-language-select-disabler example snippets
function my_polylang_disable_language_select($disable_select, $current_screen) {
return true;
}
add_filter('polylang-disable-language-select', 'my_polylang_disable_language_select', 10, 2);
add_filter('polylang-disable-default-language-select', '__return_true');