if( defined( 'YITH_WCWL' ) && ! function_exists( 'yith_wcwcl_change_cookie_expiration' ) ){
function yith_wcwcl_change_cookie_expiration( $expiration ){
return 60 * DAY_IN_SECONDS;
}
add_filter( 'yith_wcwl_cookie_expiration', 'yith_wcwcl_change_cookie_expiration' );
}
Add it to functions.php this should set expiration to 60 days.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.