WC Product Vendor Pro Issue
-
wordpress/wp-content/plugins/woocommerce-product-vendors/includes/class-wc-product-vendors-authentication.php line:74
Before:
___________public function set_cookie( $user_id, $vendor_id ) {
$expiry = apply_filters( ‘auth_cookie_expiration’, current_time( ‘timestamp’ ) + ( 14 * DAY_IN_SECONDS ), $user_id, true );return setcookie( ‘woocommerce_pv_vendor_id_’ . COOKIEHASH, absint( $vendor_id ), 0, SITECOOKIEPATH, COOKIE_DOMAIN );
}After
________public function set_cookie( $user_id, $vendor_id ) {
$expiry = apply_filters( ‘auth_cookie_expiration’, current_time( ‘timestamp’ ) + ( 14 * DAY_IN_SECONDS ), $user_id, true );return setcookie( ‘woocommerce_pv_vendor_id_’ . COOKIEHASH, absint( $vendor_id ), $expiry, SITECOOKIEPATH, COOKIE_DOMAIN );
}** cookie var “$expiry ” not set in the setcookie function, I don’t understand why?
So when user set remember me option the WordPress set cookies for 14 days but WC product Vendor not set any cookies for that, and set session for this option(Remember Me). We need to modify this code. I don’t understand why developer skip this issue.The page I need help with: [log in to see the link]
- The topic ‘WC Product Vendor Pro Issue’ is closed to new replies.