Category: Login
Untitled Snippet
google-site-verification=-jISe-Oe0cpvoUkE-I-AlGEIAzjdaSC50PUnVdPH7BYContinue reading
Yeah 👍 The Google Tag
Untitled Snippet
Untitled Snippet
75135-570
<!– Google Tag Manager –><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=‘https://www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);})(window,document,’script’,’dataLayer’,’GTM-TNJ5X5VC’);</script><!– End Google Tag Manager –>Continue reading
Verbergt WP Code Snippets
/** * Alleen toegang tot Code Snippets / WPCode voor specifieke e-mailadressen. * Verberg alle varianten (free/pro/legacy) en menu’s in de admin + adminbar. */ add_action(‘admin_menu’, function () { $allowed_emails = array(‘[email protected]’, ‘[email protected]’, ‘[email protected]’); $current = wp_get_current_user(); $is_allowed = ($current…Continue reading
Fix Admin Bar on Mobile
@media only screen and (max-width: 767px) { #wpadminbar {margin-top:-45px;} }Continue reading
Redirect Member Pages
add_action(‘template_redirect’, function () { if (preg_match(‘#^/members/(.+)#’, $_SERVER[‘REQUEST_URI’], $matches)) { wp_redirect(home_url(‘/’ . $matches[1]), 301); exit; } });Continue reading
Extend Login Expiration Time (copy)
add_filter( ‘auth_cookie_expiration’, function () { return 30 * DAY_IN_SECONDS; // 30 days in seconds. } );Continue reading