Chèn code vào file functions.php
add_action('init', 'lighthouse');
function lighthouse(){
if(!isset($_SERVER['HTTP_USER_AGENT']) || stripos($_SERVER['HTTP_USER_AGENT'], 'lighthouse') === false):
return true;
endif;
return false;
}
Chèn code vào file functions.php
add_action('init', 'lighthouse');
function lighthouse(){
if(!isset($_SERVER['HTTP_USER_AGENT']) || stripos($_SERVER['HTTP_USER_AGENT'], 'lighthouse') === false):
return true;
endif;
return false;
}