Skip to content Skip to navigation
Back to the main support

Set Google Snippet Preview to Desktop by default

Hook name
seopress_toggle_mobile_preview
Required version
3.8.2
function sp_toggle_mobile_preview($toggle_preview) {
$toggle_preview = 0; //Desktop Preview (default: 1 for Mobile Preview)
return $toggle_preview;
}
add_filter('seopress_toggle_mobile_preview', 'sp_toggle_mobile_preview');
How-to use SEOPress hooks