Uncategorized

Redirect Specific Website URL on Mobile Homepage

add_action( 'template_redirect', 'redirect_on_mobile_page' );

function redirect_on_mobile_page(){
	
	if( wp_is_mobile() && is_front_page() ){
   		wp_redirect( 'https://nearme.woochamp.com/category/plumbers/' ); 
    exit;
}
}

Leave a Reply