Cookie duration
<?php
// Change the default login cookie length
function change_wp_cookie_duration($expirein)
{
return 2592000; // 1 month in seconds
}
add_filter('auth_cookie_expiration', 'change_wp_cookie_duration');
<?php
// Change the default login cookie length
function change_wp_cookie_duration($expirein)
{
return 2592000; // 1 month in seconds
}
add_filter('auth_cookie_expiration', 'change_wp_cookie_duration');