helpful_user_cookie_time

This filter allows you to set the time for how long the cookie of the user who votes should be set.

/**
 * @param string $datetime
 * @return string
 */
add_filter('helpful_user_cookie_time', function(string $datetime) {
    $datetime = '+60 days'; // default: +30 days
    return $datetime;
});

Was this post helpful?

Top