ssh root@SERVER_IP_ADDRESS
$ sudo apt-get update
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:certbot/certbot
<?php | |
/** | |
* Polylang Shortcode - https://wordpress.org/plugins/polylang/ | |
* Add this code in your functions.php | |
* Put shortcode [polylang_langswitcher] to post/page for display flags inline-block | |
* | |
* @return string | |
*/ | |
function custom_polylang_langswitcher() { | |
$output = ''; |
function hideTdo() { | |
var timer = null; | |
var target = document.querySelectorAll('#tidio-chat iframe')[0]; | |
if(!target || typeof target === 'undefined') { | |
if(timer !== null) { | |
clearTimeout(timer); | |
} | |
timer = setTimeout(hideTdo, 500); | |
return; | |
} else { |
<?php | |
if( !is_admin() && $pagenow != 'wp-login.php' && pll_current_language() == 'en' ) | |
{ | |
wp_redirect(site_url().'/de/'); | |
die(); | |
} |